dsnap-sync template: snapper options for derived dsnap-sync configs

- adapt to rely on systemd units
- enable timeline cleanups, since snapshots are marked to support
  this algorithm
- typo correction for SNAP_SYNC_EXCLUDE
This commit is contained in:
2018-07-12 13:00:19 +02:00
parent 66e40a0931
commit a7b4a998ee

View File

@@ -23,24 +23,23 @@ SYNC_ACL="yes"
BACKGROUND_COMPARISON="yes"
# run daily number cleanup
NUMBER_CLEANUP="no"
# handele NUMBER_CLEANUP via systemd, if a timer unit is active
NUMBER_CLEANUP="yes"
# limit for number cleanup
NUMBER_MIN_AGE="1800"
NUMBER_LIMIT="50"
NUMBER_LIMIT_IMPORTANT="10"
NUMBER_LIMIT="52"
NUMBER_LIMIT_IMPORTANT="12"
# "no": we will use systemd.timer
TIMELINE_CREATE="no"
# handle TIMELINE via systemd, if a timer unit is active
TIMELINE_CREATE="yes"
# create cron based cleanup entries
# "no": we will use systemd.timer
TIMELINE_CLEANUP="no"
# create a systemd.timer unit to handle TIMELINE cleanup
TIMELINE_CLEANUP="yes"
# snap-sync: timeline settings
# timeline settings
TIMELINE_MIN_AGE="1800"
TIMELINE_LIMIT_HOURLY="0"
TIMELINE_LIMIT_HOURLY="1"
TIMELINE_LIMIT_DAILY="14"
TIMELINE_LIMIT_MONTHLY="11"
TIMELINE_LIMIT_YEARLY="2"
@@ -54,7 +53,7 @@ EMPTY_PRE_POST_MIN_AGE="1800"
# uncomment to exclude this subvol when calling
# snap-sync as timer unit
# SNAP_SUNC_EXCLUDE="yes"
# SNAP_SYNC_EXCLUDE="yes"
# uncomment if your config will be used as snapshot-clone
#CHILD_CONFIG=true