Common tasks for operating self-hosted server
Upgrade Obico Server​
cd obico-server
git checkout release
git pull
docker compose up --build -d
Note: if you are on linux you may need to run the last line as sudo
(ex. sudo docker...
)
Note: you need to use docker-compose
instead of docker compose
on older Docker versions
Backup database​
Just make a copy of obico-server/backend/db.sqlite3
Access timelapses stored on your server​
Although you can simply download the timelapses from either the web interface or the mobile app, it may be important to know exactly where the timelapses are stored on your local machine.
Path to timelapses:
obico-server/backend/static_build/media/tsd-timelapses/private/
Prune old images​
As you upgrade the Obico Server containers, old (now unused) versions of these containers will be left behind. To remove these old images, one can run the following:
docker image prune
Note: if you are on linux you may need to run the last line as sudo
(ex. sudo docker...
)