This commit is contained in:
Michael Grote 2024-10-28 18:52:56 +01:00
parent 8e0be786b1
commit f38614a507
2 changed files with 8 additions and 1 deletions

View file

@ -13,5 +13,10 @@
------
rsync_mirror_user_group: "{{ rsync_mirror_user }}"
rsync_mirror_user: rsync_mirror
rsync_mirror_bw_limit: "2m" # 2 Megabytes
### when should rsync_mirror be run (every 5 minutes)
rsync_mirror_timer: '*-*-* *:00/5'
rsync_mirror_dirs:
- src: /hdd_data/tmp # slashes beachten
dest: rsync_mirror@pbs.mgrote.net:/backup/pve5/tmp

View file

@ -1,4 +1,6 @@
#!/bin/bash
{{ file_header | default () }}
rsync befehle....
{% for item in rsync_mirror_dirs %}
rsync -e "ssh -i /etc/rsync_mirror/.ssh/id_rsync_mirror" --checksum --dry-run --bwlimit={{ rsync_mirror_bw_limit }} --archive --verbose --human-readable --stats --compress --fuzzy --force --delete-after --recursive {{ item.src }} {{ item.dest }}
{% endfor %}