Move backup datasets

This commit is contained in:
Wojciech Kozlowski 2023-09-17 08:09:37 -07:00
parent 7fa7e2931d
commit cad31db238
2 changed files with 6 additions and 4 deletions

View File

@ -50,9 +50,11 @@ system_var_containers_dataset: "rpool{{ system_var_containers_directory }}"
# --------------------------------------------------------------------------------------------------
system_backups_snapshots_dataset: "hpool/backup"
system_backups_snapshots_root_dataset: "{{ system_var_root_dataset |
replace('rpool/var/lib', 'hpool/backup') }}"
replace('rpool/var/lib/yggdrasil',
'hpool/backup/srv') }}"
system_backups_snapshots_data_dataset: "{{ system_var_data_dataset |
replace('rpool/var/lib', 'hpool/backup') }}"
replace('rpool/var/lib/yggdrasil/data',
'hpool/backup/srv/the-nine-worlds') }}"
# --------------------------------------------------------------------------------------------------
# vpn

View File

@ -7,12 +7,12 @@
canmount: "off"
"com.sun:auto-snapshot": "false"
- name: "backups : create services backup dataset"
- name: "backups : create backup dataset root"
community.general.zfs:
name: "{{ system_backups_snapshots_root_dataset }}"
state: "present"
- name: "backups : create services data backup dataset"
- name: "backups : create backup dataset for the-nine-worlds"
community.general.zfs:
name: "{{ system_backups_snapshots_data_dataset }}"
state: "present"