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-29 14:31:59 +01:00
|
|
|
rsync -e "ssh -i /etc/rsync_mirror/.ssh/id_rsync_mirror -o StrictHostKeyChecking=no" --dry-run --bwlimit={{ rsync_mirror_bw_limit }} --archive --verbose --human-readable --stats --compress --fuzzy --force --delete-after --recursive {{ item.src }} {{ item.dest }}
|
2024-10-29 14:33:14 +01:00
|
|
|
echo "-----------------------"
|
2024-10-28 18:52:56 +01:00
|
|
|
{% endfor %}
|
2024-10-29 14:31:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
# --checksum ; https://serverfault.com/questions/211005/rsync-difference-between-checksum-and-ignore-times-options
|