copr: incremental backup to storinator, part 5
Install the "push" rsync action.
This commit is contained in:
parent
2c86047667
commit
558ad3a1d0
2 changed files with 13 additions and 0 deletions
|
@ -85,3 +85,5 @@ rsnapshot_push:
|
||||||
rsync_args: --relative /home/copr/provision
|
rsync_args: --relative /home/copr/provision
|
||||||
command: rsnapshot_copr_backend
|
command: rsnapshot_copr_backend
|
||||||
timing_plan: copr_be
|
timing_plan: copr_be
|
||||||
|
# copr-backend's copr/resalloc pubkey
|
||||||
|
ssh_pub_key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeTO0ddXuhDZYM9HyM0a47aeV2yIVWhTpddrQ7/RAIs99XyrsicQLABzmdMBfiZnP0FnHBF/e+2xEkT8hHJpX6bX81jjvs2bb8KP18Nh8vaXI3QospWrRygpu1tjzqZT0Llh4ZVFscum8TrMw4VWXclzdDw6x7csCBjSttqq8F3iTJtQ9XM9/5tCAAOzGBKJrsGKV1CNIrfUo5CSzY+IUVIr8XJ93IB2ZQVASK34T/49egmrWlNB32fqAbDMC+XNmobgn6gO33Yq5Ly7Dk4kqTUx2TEaqDkZfhsVu0YcwV81bmqsltRvpj6bIXrEoMeav7nbuqKcPLTxWEY/2icePF"
|
||||||
|
|
|
@ -34,6 +34,17 @@
|
||||||
delegate_to: "{{ rsnapshot_push.server_host }}"
|
delegate_to: "{{ rsnapshot_push.server_host }}"
|
||||||
tags: rsnapshot_push
|
tags: rsnapshot_push
|
||||||
|
|
||||||
|
- name: install authorized key entry
|
||||||
|
authorized_key:
|
||||||
|
user: "{{ item.value.user }}"
|
||||||
|
state: present
|
||||||
|
key: "{{ item.value.ssh_pub_key }}"
|
||||||
|
key_options: "command=\"{{ '/'.join([rsnapshot_push.backup_dir, item.key, 'sync-daemon']) }}\""
|
||||||
|
delegate_to: "{{ rsnapshot_push.server_host }}"
|
||||||
|
with_dict:
|
||||||
|
- "{{ rsnapshot_push.cases }}"
|
||||||
|
tags: rsnapshot_push
|
||||||
|
|
||||||
- name: rsnapshot call wrapper
|
- name: rsnapshot call wrapper
|
||||||
template:
|
template:
|
||||||
src: server-rsnapshot.py.j2
|
src: server-rsnapshot.py.j2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue