remove syncoid, switch to rsync #221

Merged
mg merged 132 commits from sanoid_weg into master 2024-10-31 12:01:46 +01:00
2 changed files with 8 additions and 1 deletions
Showing only changes of commit f38614a507 - Show all commits

View file

@ -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

View file

@ -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 %}