ZFS Automatic Snapshot Daemon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

69 lines
1.8 KiB

#zfs_path = '/usr/local/bin/zfs'
#fswatch_path = '/usr/local/bin/fswatch'
# Tab size for indented log messages
#tab_size = 2
# Log format
#log_level = INFO
#log_format = '%(asctime)s %(name)s [%(levelname)-8s]: %(message)s'
#log_date_format = '%a, %d %b %Y, %H:%M:%S'
# Field separator in snapshot names (':' gives 'dataset@tag:serial')
#separator = ':'
# How frequently to prune expired snapshots
#destroy_trigger = cron('* * * * *')
# Default settings for a schedule
#defaults = dict(
# tag = 'zasd',
# disabled = False,
# filesystems = ['tank'],
# recursive = True,
# trigger = every(hours=12),
# priority = 1,
# keep = 14)
# The simplest possible schedule list possible sets up a single
# schedule with the default settings
#schedules = [{}]
# More advanced example schedule
#
schedules = [
dict(
tag = '5mi',
trigger = cron('*/5 * * * *'),
priority = 6,
keep = 4),
dict(
tag = '20m',
trigger = cron('*/20 * * * *'),
priority = 5,
keep = 3),
dict(
tag = '1hr',
trigger = cron('0 * * * *'),
priority = 4,
keep = 6),
dict(
tag = '6hr',
trigger = cron('0 */6 * * *'),
priority = 3,
keep = 4),
dict(
tag = '1dy',
trigger = cron('0 0 * * *'),
priority = 2,
keep = 7),
dict(
tag = '1wk',
trigger = cron('0 0 * * mon'),
priority = 1,
keep = 4)]