This formula will install the borgbackup package (assuming it is already
available on your machine's sources).
The clients will periodically (via cron) run a borgbackup.sh which pushes
backups to a master. Borg supports backups on local filesystems and remote hosts
via ssh. This formula requires ssh keys to be used when connecting to a remote
host via ssh.
With the default configuration borg will backup every night, except on sundays where a backup plus a borg check of the last 7 snapshots will be done.
- cron
- cronic (will be installed automatically)
See the full Salt Formulas installation and usage instructions.
Carefully read through the default list of included and excluded backup dirs under
borg/defaults.yaml.
Configuration is done via pillar. See example.pillar for examples.
borg.backupInstalls borgbackup, sets upborgbackup.shandborgwrapper.sh. Important: Run/root/borgbackup.shonce manually because ssh needs to verify the host and asks you to accept the hostkey.borg.masterInstalls borgbackup, sets up repositories and sets upauthorized_keys