From 5d22aaa1ebc110d507c334cc57ca0dde84142167 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Fri, 12 Nov 2021 17:50:11 +0100 Subject: [PATCH] backup server stuff --- bundles/backup-server/metadata.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bundles/backup-server/metadata.py b/bundles/backup-server/metadata.py index ae242f7..984d5b3 100644 --- a/bundles/backup-server/metadata.py +++ b/bundles/backup-server/metadata.py @@ -28,7 +28,8 @@ def zfs(metadata): other_node.has_bundle('backup') and 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 datasets[base_dataset] = { @@ -40,7 +41,7 @@ def zfs(metadata): # for rsync backups datasets[f'{base_dataset}/fs'] = { - 'mountpoint': f"/mnt/backups/{other_node.metadata.get('id')}", + 'mountpoint': f"/mnt/backups/{id}", 'readonly': 'off', 'backup': False, 'com.sun:auto-snapshot': 'true',