# BlueRune's Snapper config for / (installed as /usr/share/snapper/config-templates/bluerune;
# the system image copies it to /etc/snapper/configs/root). Snapper's default template, with
# snapshots taken around each pacman transaction (snap-pac) rather than every hour, and fewer
# kept: each becomes a Limine boot entry (limine-snapper-sync), and the ESP holds their kernels.
# The snapshots live in the @snapshots subvolume, mounted at /.snapshots.

SUBVOLUME="/"
FSTYPE="btrfs"

# btrfs qgroup for space aware cleanup algorithms
QGROUP=""

# fraction or absolute size of the filesystems space the snapshots may use
SPACE_LIMIT="0.5"
# fraction or absolute size of the filesystems space that should be free
FREE_LIMIT="0.2"

# Whether snapshot numbers should be all-time unique.
UNIQUE_NUMBERS="yes"

# users and groups allowed to work with config
ALLOW_USERS=""
ALLOW_GROUPS="wheel"
# sync users and groups from ALLOW_USERS and ALLOW_GROUPS to .snapshots
SYNC_ACL="no"

# start comparing pre- and post-snapshot in background after creating post-snapshot
BACKGROUND_COMPARISON="yes"

# number cleanup: the pre and post snapshots of pacman transactions
NUMBER_CLEANUP="yes"
NUMBER_MIN_AGE="1800"
NUMBER_LIMIT="10"
NUMBER_LIMIT_IMPORTANT="5"

# no hourly snapshots
TIMELINE_CREATE="no"
TIMELINE_CLEANUP="yes"
TIMELINE_MIN_AGE="1800"
TIMELINE_LIMIT_HOURLY="5"
TIMELINE_LIMIT_DAILY="7"
TIMELINE_LIMIT_WEEKLY="0"
TIMELINE_LIMIT_MONTHLY="0"
TIMELINE_LIMIT_QUARTERLY="0"
TIMELINE_LIMIT_YEARLY="0"

# cleanup empty pre-post-pairs
EMPTY_PRE_POST_CLEANUP="yes"
EMPTY_PRE_POST_MIN_AGE="1800"
