bundlewrap/bundles/zfs/metadata.py
mwiegand e65e7185b5 wip
2021-07-13 15:26:23 +02:00

34 lines
1.1 KiB
Python

#import re
defaults = {
'systemd-timers': {
'zfs-trim': {
'command': '/usr/lib/zfs-linux/trim',
'when': 'Sat 00:00',
'persistent': True,
},
'zfs-scrub': {
'command': '/usr/lib/zfs-linux/scrub',
'when': 'Sun 00:00',
'persistent': True,
},
'zfs-auto-snapshot-hourly': {
'command': '/usr/sbin/zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 //',
'when': 'hourly',
},
'zfs-auto-snapshot-daily': {
'command': '/usr/sbin/zfs-auto-snapshot --quiet --syslog --label=daily --keep=7 //',
'when': 'daily',
},
'zfs-auto-snapshot-weekly': {
'command': '/usr/sbin/zfs-auto-snapshot --quiet --syslog --label=weekly --keep=4 //',
'when': 'weekly',
'persistent': True,
},
'zfs-auto-snapshot-monthly': {
'command': '/usr/sbin/zfs-auto-snapshot --quiet --syslog --label=monthly --keep=24 //',
'when': 'monthly',
'persistent': True,
},
},
}