ansible/roles/rsnapshot-push
Pavel Raiskup 9aa32b4af1 rsnapshot-push: 1-hour SSH timeout before ending the backup session
The default timeout on the Copr Backend server is set to 60 seconds,
which can sometimes trigger the cancellation of the backup process.
2024-10-07 15:51:05 +02:00
..
defaults copr-be: keep just 4 weekly snapshots 2023-02-21 11:27:17 +01:00
tasks copr-be: rsnapshot-push: run weekly on Saturday 2023-02-15 09:01:09 +01:00
templates rsnapshot-push: 1-hour SSH timeout before ending the backup session 2024-10-07 15:51:05 +02:00
README copr: incremental backups: documentation 2023-02-05 12:32:12 +01:00

PUSH backups using rsnapshot
============================

1. use the role rsnapshot-push

2. configure via vars file

  | rsnapshot_push:
  |   server_host: <hostname of the backup host, e.g. storinator>
  |   backup_dir: <directory on server_host where to backup>
  |   cases:
  |     # Multiple cases are possible.  The "key" is just unique across cases.
  |     <name-of-the-case>:
  |       # what user to rsync under (locally/remotely, must exist on both sides)
  |       user: <username>
  |       # additional rsync args (including list of backed-up directories)
  |       rsync_args: --relative <directory> --info=progress2 ...
  |       # the script useful for triggering the rsync, stored under /usr/local/bin
  |       command: rsnapshot_push_some_unique_name
  |       # this allows "push" backup entry in authorized_keys on server_host
  |       ssh_pub_key: "ssh-rsa AAAAB3NzaC1yi...."

3. configure frequency of rsync runs

  TODO: this is currently set globally in roles/rsnapshot-push/tasks/main.yml
        as twice-a-week cronjob.  This needs to be configured.