remove syncoid, switch to rsync #221

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

View file

@ -247,6 +247,47 @@ munin_node_plugins:
env.config_dir /etc/fail2ban
user root
### mgrote_sync (für pbs + pve)
rsync_mirror_user_group: "{{ rsync_mirror_user }}"
rsync_mirror_user: rsync_mirror
rsync_mirror_bw_limit: "2m" # 2 Megabytes
rsync_mirror_timer: '*-*-* 23:00:00' # jeden Tag um 2300
rsync_mirror_private_key: "{{ lookup('viczem.keepass.keepass', 'rsync_mirror_private_key', 'notes') }}"
rsync_mirror_public_key: "{{ lookup('viczem.keepass.keepass', 'rsync_mirror_public_key', 'notes') }}"
rsync_mirror_dirs: # "/" beachten!
- src: /hdd_data/tmp
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/tmp"
- src: hdd_data/archiv
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/archiv"
- src: hdd_data/backup
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/backup"
- src: hdd_data/bilder
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/bilder"
- src: hdd_data/buecher
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/buecher"
- src: hdd_data/music
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/music"
- src: hdd_data/papa_backup
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/papa_backup"
- src: hdd_data/programme
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/programme"
- src: hdd_data/pve_backup
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/pve_backup"
- src: hdd_data/restic
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/restic"
- src: hdd_data/scans
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/scans"
- src: hdd_data/tmp
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/tmp"
- src: hdd_data/videos
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/videos"
- src: hdd_data/vm
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/vm"
# Ansible Variablen
### User
ansible_user: "ansible-user"

View file

@ -231,3 +231,34 @@ pve_pbs_datastore:
username: user_pve5@pbs
password: "{{ lookup('viczem.keepass.keepass', 'pbs_pve_user', 'password') }}"
fingerprint: "7F:AC:54:75:1C:33:55:84:1E:1E:3A:15:5A:5E:AF:79:33:C9:D4:E1:C0:A0:1C:0D:9E:6A:EA:82:F9:27:57:79"
### mgrote_sync
rsync_mirror_dirs: # "/" beachten!
- src: /hdd_data/tmp
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/tmp"
- src: hdd_data/archiv
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/archiv"
- src: hdd_data/backup
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/backup"
- src: hdd_data/bilder
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/bilder"
- src: hdd_data/buecher
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/buecher"
- src: hdd_data/music
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/music"
- src: hdd_data/papa_backup
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/papa_backup"
- src: hdd_data/programme
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/programme"
- src: hdd_data/pve_backup
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/pve_backup"
- src: hdd_data/restic
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/restic"
- src: hdd_data/scans
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/scans"
- src: hdd_data/tmp
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/tmp"
- src: hdd_data/videos
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/videos"
- src: hdd_data/vm
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/vm"

View file

@ -1,41 +1,39 @@
---
rsync_mirror_user_group: "{{ rsync_mirror_user }}"
rsync_mirror_user: rsync_mirror
rsync_mirror_bw_limit: "2m" # 2 Megabytes
rsync_mirror_timer: '*-*-* 23:00:00' # jeden Tag um 2300
rsync_mirror_private_key: "{{ lookup('viczem.keepass.keepass', 'rsync_mirror_private_key', 'notes') }}"
rsync_mirror_public_key: "{{ lookup('viczem.keepass.keepass', 'rsync_mirror_public_key', 'notes') }}"
rsync_mirror_dirs: # "/" beachten!
- src: /hdd_data/tmp
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/tmp"
- src: hdd_data/archiv
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/archiv"
- src: hdd_data/backup
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/backup"
- src: hdd_data/bilder
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/bilder"
- src: hdd_data/buecher
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/buecher"
- src: hdd_data/music
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/music"
- src: hdd_data/papa_backup
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/papa_backup"
- src: hdd_data/programme
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/programme"
- src: hdd_data/pve_backup
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/pve_backup"
- src: hdd_data/restic
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/restic"
- src: hdd_data/scans
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/scans"
- src: hdd_data/tmp
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/tmp"
- src: hdd_data/videos
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/videos"
- src: hdd_data/vm
dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/vm"
## todo ssh konfig in datei statt inline?
# nach host vars
# ---
# rsync_mirror_user_group: "{{ rsync_mirror_user }}"
# rsync_mirror_user: rsync_mirror
# rsync_mirror_bw_limit: "2m" # 2 Megabytes
# rsync_mirror_timer: '*-*-* 23:00:00' # jeden Tag um 2300
#
# rsync_mirror_private_key: "{{ lookup('viczem.keepass.keepass', 'rsync_mirror_private_key', 'notes') }}"
# rsync_mirror_public_key: "{{ lookup('viczem.keepass.keepass', 'rsync_mirror_public_key', 'notes') }}"
#
# rsync_mirror_dirs: # "/" beachten!
# - src: /hdd_data/tmp
# dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/tmp"
# - src: hdd_data/archiv
# dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/archiv"
# - src: hdd_data/backup
# dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/backup"
# - src: hdd_data/bilder
# dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/bilder"
# - src: hdd_data/buecher
# dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/buecher"
# - src: hdd_data/music
# dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/music"
# - src: hdd_data/papa_backup
# dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/papa_backup"
# - src: hdd_data/programme
# dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/programme"
# - src: hdd_data/pve_backup
# dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/pve_backup"
# - src: hdd_data/restic
# dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/restic"
# - src: hdd_data/scans
# dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/scans"
# - src: hdd_data/tmp
# dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/tmp"
# - src: hdd_data/videos
# dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/videos"
# - src: hdd_data/vm
# dest: "{{ rsync_mirror_user }}@pbs.mgrote.net:/backup/pve5/vm"
#