Update config file with 'if_modifed' option

master
Thor 4 years ago
parent 52eddeba13
commit beaab4b3d5
  1. 44
      src/zasd.conf.example.py

@ -12,18 +12,38 @@
# Field separator in snapshot names (':' gives 'dataset@tag:serial') # Field separator in snapshot names (':' gives 'dataset@tag:serial')
#separator = ':' #separator = ':'
# How frequently to prune expired snapshots # Polling interval for expired snapshot destructor
#destroy_trigger = cron('* * * * *') #destroy_trigger = cron('* * * * *')
# Default settings for a schedule # Default settings for a schedule
#defaults = dict( defaults = dict(
# Unique snapshot tag for schedule
# tag = 'zasd', # tag = 'zasd',
# Whether the schedule should be executed
# disabled = False, # disabled = False,
# Datasets to watch (must have mountpoints)
# filesystems = ['tank'], # filesystems = ['tank'],
# Whether to watch child datasets
# recursive = True, # recursive = True,
# Time trigger for snasphot
# trigger = every(hours=12), # trigger = every(hours=12),
# Whether to ignore triggers on filesystems whose files
# have not been modifed since the trigger was last fired
# if_modified = False,
# Priority for snapshot; if more than one trigger fires
# at once on the same filesystem, the trigger with the
# highest priority wins out
# priority = 1, # priority = 1,
# keep = 14)
# The maximum number of snapshots kept at any given time
# keep = 14
)
# The simplest possible schedule list possible sets up a single # The simplest possible schedule list possible sets up a single
# schedule with the default settings # schedule with the default settings
@ -36,19 +56,22 @@ schedules = [
tag = '5mi', tag = '5mi',
trigger = cron('*/5 * * * *'), trigger = cron('*/5 * * * *'),
priority = 6, priority = 6,
keep = 4), keep = 4
),
dict( dict(
tag = '20m', tag = '20m',
trigger = cron('*/20 * * * *'), trigger = cron('*/20 * * * *'),
priority = 5, priority = 5,
keep = 3), keep = 3
),
dict( dict(
tag = '1hr', tag = '1hr',
trigger = cron('0 * * * *'), trigger = cron('0 * * * *'),
priority = 4, priority = 4,
keep = 6), keep = 6
),
dict( dict(
tag = '6hr', tag = '6hr',
@ -60,10 +83,13 @@ schedules = [
tag = '1dy', tag = '1dy',
trigger = cron('0 0 * * *'), trigger = cron('0 0 * * *'),
priority = 2, priority = 2,
keep = 7), keep = 7
),
dict( dict(
tag = '1wk', tag = '1wk',
trigger = cron('0 0 * * mon'), trigger = cron('0 0 * * mon'),
priority = 1, priority = 1,
keep = 4)] keep = 4
)
]

Loading…
Cancel
Save