remove syncoid, switch to rsync #221

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

View file

@ -1,6 +1,5 @@
---
### when should rsync_mirror be run (every 5 minutes)
rsync_mirror_timer: '*-*-* *:00/5'
### mgrote_rsync_mirror
#rsync_mirror_syncoid_datasets_sync:
@ -14,3 +13,5 @@ rsync_mirror_timer: '*-*-* *:00/5'
------
rsync_mirror_user_group: "{{ rsync_mirror_user }}"
rsync_mirror_user: rsync_mirror
### when should rsync_mirror be run (every 5 minutes)
rsync_mirror_timer: '*-*-* *:00/5'

View file

@ -1,7 +1,7 @@
{{ file_header | default () }}
[Unit]
Description=Send zfs snapshots with rsync_mirror/rsync_mirror.
Description=Mirror data with rsync.
OnFailure=rsync_mirror_mail.service
OnSuccess=rsync_mirror_mail.service

View file

@ -3,7 +3,7 @@
Description=Timer for rsync_mirror.
[Timer]
OnCalendar={{ rsync_mirror_rsync_mirror_timer }}
OnCalendar={{ rsync_mirror_timer }}
[Install]
WantedBy=timers.target multi-user.target zfs.target

View file

@ -5,4 +5,4 @@ Description=Send a Mail for rsync_mirror service after error or success rsync_mi
[Service]
Type=oneshot
ExecStart=/bin/bash -c '/usr/bin/journalctl -u syncoid.service -n 30 | mail -aFROM:syncoid@mgrote.net -s "syncoid - %H" {{ my_mail }}'
ExecStart=/bin/bash -c '/usr/bin/journalctl -u rsync_mirror.service -n 30 | mail -aFROM:{{ rsync_mirror_user }}@mgrote.net -s "syncoid - %H" {{ my_mail }}'