1.0 KiB
1.0 KiB
backups
backups are done with vykar to borgbase
always remember to docker compose stop before doing any of this!
creating
- if on a new borgbase repo, run
vykar initfirst - to back up, run
sudo vykar backup(sudo required as we are accessing/var/lib/docker/volumes/) - to back up automatically, run
sudo EDITOR=micro crontab -eand add the following:TZ=UTC 0 6 * * * /home/admin/atom.town/scripts/volume-backup.sh
restoring
the restore process is kind of fucked up but doable
- restore on new system
- run
vykar listto find a snapshot to use sudo rm -rf /var/lib/docker/volumes/- then
sudo vykar restore abcd1234 /var/lib/docker/volumes/ - figure out the UID:GID for all containers and
sudo chown -R UID:GID /var/lib/docker/volumes/.../_data/their respective volumes
- run
- restore on same system
- run
vykar listto find a snapshot to use - then
sudo vykar restore abcd1234 /var/lib/docker/volumes/
- run