forked from infra/ansible
copr: incremental backups: documentation
This commit is contained in:
parent
182dce43e8
commit
57065bd9b0
2 changed files with 27 additions and 1 deletions
26
roles/rsnapshot-push/README
Normal file
26
roles/rsnapshot-push/README
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
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.
|
||||
|
|
@ -64,7 +64,7 @@
|
|||
delegate_to: "{{ rsnapshot_push.server_host }}"
|
||||
tags: rsnapshot_push
|
||||
|
||||
- name: backup praiskup data
|
||||
- name: cronjob run twice a week to trigger the backup (and rotation)
|
||||
cron:
|
||||
name: "backup documents - {{ item.key }}"
|
||||
minute: "1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue