homeserver/roles/mgrote_rsync/templates/rsync_mirror.sh.j2

9 lines
428 B
Text
Raw Normal View History

2024-10-28 18:24:29 +01:00
#!/bin/bash
{{ file_header | default () }}
2024-10-28 18:52:56 +01:00
{% for item in rsync_mirror_dirs %}
2024-10-29 14:22:28 +01:00
echo "-----------------------"
2024-10-29 14:21:45 +01:00
echo "Source: {{ item.src }}"
2024-10-28 19:30:51 +01:00
rsync -e "ssh -i /etc/rsync_mirror/.ssh/id_rsync_mirror -o StrictHostKeyChecking=no" --checksum --dry-run --bwlimit={{ rsync_mirror_bw_limit }} --archive --verbose --human-readable --stats --compress --fuzzy --force --delete-after --recursive {{ item.src }} {{ item.dest }}
2024-10-28 18:52:56 +01:00
{% endfor %}