diff --git a/README.md b/README.md index a864b96..6c683ea 100644 --- a/README.md +++ b/README.md @@ -78,14 +78,20 @@ specifics for everything ## backups -- backups are done with [vykar](https://vykar.borgbase.com) to [borgbase](https://borgbase.com) +backups are done with [vykar](https://vykar.borgbase.com) to [borgbase](https://borgbase.com) + +**creating** - if on a new borgbase repo, run `vykar init` first +- 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 -e` and add the following: ``` TZ=UTC 0 * * * * /home/admin/thingy/scripts/volume-backup.sh ``` +**restoring** +- to restore the backup, run `vykar list` to find a snapshot to use, then `sudo vykar restore abcd1234 /var/lib/docker/volumes/` + ## todo - further secure the server (ratelimiting, hardening...) - more services