Adding client set up notes for Backup script

This commit is contained in:
Noah L. Schrick 2022-11-18 21:40:04 -06:00
parent e855310ec6
commit 8da7ab267b

View File

@ -45,4 +45,13 @@ https://borgbackup.readthedocs.io/
- I have no need to have the drive mounted full time (backups are on NFS mounts only used for backups), so I also have systemd mount the drive for the backup, then unmount when done. Be sure to change the drive mount as well for each system.
- For the mount service, the unit name and 'Where' setting MUST match. For example, for "Where=/mnt/mountpoint/backups", the unit must be named mnt-mountpoint-backups.mount
- I set specific backup times in the timer unit rather than a random time +- midnight (OnCalendar=daily with a RandomizedDelaySec) so I have predictable, known times when things may be down.
- The timer and service must have the same name (except for the .service and .timer part of course).
- The timer and service must have the same name (except for the .service and .timer part of course).
## Setting up
### Client
- Install borg backup
- Install nfs-common
- Obtain all systemd files, and move them to /etc/systemd/system
- Enable the timer unit
- Temporarily mount the backup folder to initialize the borg repo for first-time use (borg init --encryption repokey-blake2 /path/to/repo)
- Save the key