remove syncoid, switch to rsync #221
2 changed files with 8 additions and 1 deletions
|
@ -13,5 +13,10 @@
|
||||||
------
|
------
|
||||||
rsync_mirror_user_group: "{{ rsync_mirror_user }}"
|
rsync_mirror_user_group: "{{ rsync_mirror_user }}"
|
||||||
rsync_mirror_user: rsync_mirror
|
rsync_mirror_user: rsync_mirror
|
||||||
|
rsync_mirror_bw_limit: "2m" # 2 Megabytes
|
||||||
### when should rsync_mirror be run (every 5 minutes)
|
### when should rsync_mirror be run (every 5 minutes)
|
||||||
rsync_mirror_timer: '*-*-* *:00/5'
|
rsync_mirror_timer: '*-*-* *:00/5'
|
||||||
|
|
||||||
|
rsync_mirror_dirs:
|
||||||
|
- src: /hdd_data/tmp # slashes beachten
|
||||||
|
dest: rsync_mirror@pbs.mgrote.net:/backup/pve5/tmp
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
{{ file_header | default () }}
|
{{ 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 %}
|
||||||
|
|
Loading…
Reference in a new issue