2023-03-07 01:10:38 +01:00
|
|
|
# Set to 'true' to do nothing and just print messages during pacman
|
|
|
|
# operations. Helpful to get a feel for what these hooks do. This defaults
|
2023-03-07 01:12:48 +01:00
|
|
|
# to 'false' so if you set this to an empty string or remove or uncomment it
|
|
|
|
# in this conf file it'll equal 'false'.
|
2023-03-07 01:10:38 +01:00
|
|
|
do_dry_run='false'
|
2023-03-06 00:39:18 +01:00
|
|
|
|
2023-03-07 01:10:38 +01:00
|
|
|
# Pipe-separated list of package names we consider important. Will be
|
|
|
|
# matched against regular expression ^(this_var_here)$. Snapshots taken
|
|
|
|
# before a pacman transaction on an important package have a separate
|
|
|
|
# retention from snapshots for trivial packages. Lends itself to keeping
|
|
|
|
# high-risk updates separate from everything else.
|
|
|
|
important_names='linux|systemd|zfs-(dkms|utils)'
|
2023-03-05 08:15:16 +01:00
|
|
|
|
2023-03-07 01:10:38 +01:00
|
|
|
# Number snapshots to keep
|
2023-03-05 08:15:16 +01:00
|
|
|
snaps_trivial_keep='15'
|
|
|
|
snaps_important_keep='5'
|
|
|
|
|
2023-03-07 01:10:38 +01:00
|
|
|
# Which suffix to use in snapshot names to identify snapshots before a
|
|
|
|
# trivial pacman operation and before important pacman operations.
|
2023-03-05 08:15:16 +01:00
|
|
|
snaps_trivial_suffix='trv'
|
|
|
|
snaps_important_suffix='imp'
|
2023-03-06 00:13:33 +01:00
|
|
|
|
2023-03-07 01:10:38 +01:00
|
|
|
# Snapshot name will contain list of affected packages trimmed to this many
|
|
|
|
# max characters.
|
2023-03-07 00:04:34 +01:00
|
|
|
pkgs_list_max_length='30'
|
2023-03-06 00:57:02 +01:00
|
|
|
|
|
|
|
# Hook will by default snapshot all datasets that have the property
|
|
|
|
# 'space.quico:auto-snapshot=true' set, even the ones that are not currently
|
|
|
|
# mounted and may belong to unrelated operating systems. Set
|
|
|
|
# snap_only_local_datasets='true' to limit snapshots to only those datasets
|
|
|
|
# that have aforementioned property and at the same time are currently
|
|
|
|
# mounted in your running OS. Currently mounted is defined as:
|
|
|
|
# findmnt --json --list --output 'fstype,source,target' | \
|
|
|
|
# jq --raw-output '.[][] | select(.fstype=="zfs") | .source'
|
|
|
|
snap_only_local_datasets='true'
|
2023-03-06 01:21:56 +01:00
|
|
|
|
2023-03-07 01:10:38 +01:00
|
|
|
# Which characters do we want to use to separate snapshot name fields
|
2023-03-06 01:21:56 +01:00
|
|
|
snap_field_separator='_'
|
2023-03-07 01:10:38 +01:00
|
|
|
# Prefix all our snapshots with this string to keep them separate from
|
|
|
|
# snapshots done by any other means
|
|
|
|
snap_name_prefix='pacman'
|
|
|
|
# We do "$(date +<whatever>)" to put a timestamp into snapshot names.
|
2023-03-07 01:47:45 +01:00
|
|
|
# Defaults to "$(date +'%F-%H%M')" which returns '2023-03-07-0050'.
|
2023-03-06 03:02:02 +01:00
|
|
|
snap_date_format='%F-%H%M'
|
2023-03-06 01:21:56 +01:00
|
|
|
|
2023-03-07 01:10:38 +01:00
|
|
|
# Which strings do we want to diffferentiate pacman operations Install,
|
|
|
|
# Remove, Upgrade
|
2023-03-06 01:21:56 +01:00
|
|
|
snap_op_installation_suffix='inst'
|
|
|
|
snap_op_remove_suffix='rmvl'
|
|
|
|
snap_op_upgrade_suffix='upgr'
|