Files
fedora-infra_ansible/roles/rsnapshot-push/templates/client-backup-script.sh.j2

11 lines
330 B
Django/Jinja

#! /bin/bash
# the ::push is defined server-side target
exec rsync -av --xattrs --acls \
--delete --delete-excluded \
--rsh=ssh \
-e 'ssh -o ConnectTimeout=3600 -o ServerAliveInterval=20 -o ServerAliveCountMax=900' \
{{ item.value.rsync_args }} \
{{ item.value.user }}@{{ rsnapshot_push.server_host }}::push