-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexample_config.conf
59 lines (47 loc) · 2.15 KB
/
example_config.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# A copy of default configurations can be found here -
# https://github.com/hirak99/yabsnap/blob/master/src/code/example_config.conf
# All configurations must be under the [DEFAULT] section.
[DEFAULT]
# Source, must be a btrfs mount.
# For example, `source = /` or `source = /home`.
source =
# Destination including directory and prefix where the snapshots will be stored.
# For example, `dest_prefix = /.snapshots/@root-` will result in snapshots like
# "/.snapshots/@root-20230315120000".
# Time in the format YYYYMMDDhhmmss will be added to the prefix while creating snaps.
dest_prefix =
# How many user-created snaps to keep.
# User created snaps can are made with 'create' command.
keep_user = 1
# How many pre-installation snaps to keep.
# Any value more than 0 will enable pacman hook, and store snap on before pacman operation.
# Will also work for AUR managers such as yay, since AUR managers also use pacman.
keep_preinstall = 1
# How much time must have passed from last installation to trigger a snap.
# This prevents snaps multiple installations from a script to each trigger snap in short succession.
preinstall_interval = 5 minutes
# Only one scheduled snap can be made within this interval.
# The intervals are counted from 1970 Jan 1, 12:00 AM UTC.
trigger_interval = 1 hour
# Enables creation-time retention management, and will assign TTL to each
# scheduled snap.
# If False, there will be no TTL on scheduled snaps. Cleaned up will be
# determined dynamically.
enable_scheduled_ttl = True
# If enable_scheduled_ttl = False, how much minimum time must pass before a snap
# can be cleaned up.
min_keep_secs = 1800
# How many scheduled snaps to keep.
# If all are 0, scheduled snap will be disabled.
keep_hourly = 0
keep_daily = 5
keep_weekly = 0
keep_monthly = 0
keep_yearly = 0
# Snapshot mechanism. Only BTRFS is supported as of now.
snap_type = BTRFS
# Uncomment example to specify scripts to run after yabsnap creates or deletes any snap.
# Use space as delimiter to specify multiple scripts if desired.
# If any creation / deletion operation occurs, each script will be called once.
# Example -
# post_transaction_scripts = "/home/me/script1.sh" "/home/me/script2.sh"