restic-compose-backup/docs/guide/advanced.rst

31 lines
949 B
ReStructuredText
Raw Permalink Normal View History

2019-12-09 02:57:16 +00:00
Advanced
2019-12-09 05:24:32 +00:00
--------
Currently work in progress. These are only notes :D
2019-12-09 02:57:16 +00:00
Temp Notes
2019-12-09 05:24:32 +00:00
~~~~~~~~~~
2019-12-09 02:57:16 +00:00
* Quick setup guide from start to end
* we group snapshots by path when forgetting
* explain rcb commands
* examples of using restic directly
* Explain what happens during backup process
* Explain the backup process container
2019-12-09 05:24:32 +00:00
* cache directory
* Not displaying passwords in logs
2019-12-09 02:57:16 +00:00
Inner workings
2019-12-09 05:24:32 +00:00
~~~~~~~~~~~~~~
2019-12-09 02:57:16 +00:00
* Each service in the compose setup is configured with a label
to enable backup of volumes or databases
* When backup starts a new instance of the container is created
mapping in all the needed volumes. It will copy networks etc
to ensure databases can be reached
* Volumes are mounted to `/volumes/<service_name>/<path>`
in the backup process container. `/volumes` is pushed into restic
* Databases are backed up from stdin / dumps into restic using path
`/databases/<service_name>/dump.sql`
* Cron triggers backup at 2AM every day