bundlewrap/bundles/backup/items.py
mwiegand 6c178b514a wip
2021-06-25 18:41:02 +02:00

14 lines
377 B
Python

from json import dumps
directories['/etc/backup'] = {}
files['/etc/backup/config.json'] = {
'content': dumps(
{
'server_hostname': repo.get_node(node.metadata.get('backup/server')).metadata.get('backup-server/hostname'),
'paths': sorted(set(node.metadata.get('backup/paths'))),
},
indent=4,
sort_keys=True
),
}