backup server stuff
This commit is contained in:
parent
706af2e127
commit
5d22aaa1eb
1 changed files with 3 additions and 2 deletions
|
@ -28,7 +28,8 @@ def zfs(metadata):
|
||||||
other_node.has_bundle('backup') and
|
other_node.has_bundle('backup') and
|
||||||
other_node.metadata.get('backup/server') == node.name
|
other_node.metadata.get('backup/server') == node.name
|
||||||
):
|
):
|
||||||
base_dataset = f"tank/{other_node.metadata.get('id')}"
|
id = other_node.metadata.get('id')
|
||||||
|
base_dataset = f'tank/{id}'
|
||||||
|
|
||||||
# container
|
# container
|
||||||
datasets[base_dataset] = {
|
datasets[base_dataset] = {
|
||||||
|
@ -40,7 +41,7 @@ def zfs(metadata):
|
||||||
|
|
||||||
# for rsync backups
|
# for rsync backups
|
||||||
datasets[f'{base_dataset}/fs'] = {
|
datasets[f'{base_dataset}/fs'] = {
|
||||||
'mountpoint': f"/mnt/backups/{other_node.metadata.get('id')}",
|
'mountpoint': f"/mnt/backups/{id}",
|
||||||
'readonly': 'off',
|
'readonly': 'off',
|
||||||
'backup': False,
|
'backup': False,
|
||||||
'com.sun:auto-snapshot': 'true',
|
'com.sun:auto-snapshot': 'true',
|
||||||
|
|
Loading…
Reference in a new issue