-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapshots.conf
88 lines (70 loc) · 3.2 KB
/
snapshots.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
################################################################################
# Options for taking snapshots
################################################################################
# Snapshot source device
# Can be any valid device identifier accepted by mount(8)
TAKE_SRC_SNAPSHOTS_DEV='UUID=81742141-96bb-4082-a28a-ad15edd11db4'
# Snapshot source mountpoint
TAKE_SRC_SNAPSHOTS='/root/btrfs_snapshots'
# Snapshot source mount options
TAKE_SRC_MOUNT_OPTS=('defaults' 'noatime' 'compress-force' 'subvol=/snapshots')
# Snapshot destination device
# Can be any valid device identifier accepted by mount(8)
TAKE_DEST_SNAPSHOTS_DEV='UUID=320fdb19-2d95-4452-aa72-fcd5c39cb390'
# Snapshot destination mountpoint
TAKE_DEST_SNAPSHOTS='/root/sd_snapshots'
# Snapshot destination mount options
TAKE_DEST_MOUNT_OPTS=('defaults' 'noatime' 'compress-force' 'subvol=/snapshots')
# Map of subvolumes to transfer
# [subvolume mountpoint] -> [subvolume name]
TAKE_SUBVOLUMES=(['/']='root' ['/root']='root_home' ['/home']='home')
# Cutoff point for "recent" snapshots. If the newest snapshot is older than
# this, create a new snapshot.
# Must be a valid string for use in --date=STRING
# See date(1)
TAKE_DESIRED_PREV_CUTOFF='last saturday'
# Cutoff point for "expired" snapshots. Snapshots older than this will be
# deleted from thr source.
# Must be a valid string for use in --date=STRING
# See date(1)
TAKE_EXPIRED_CUTOFF='5 weeks ago'
################################################################################
# Options for transfering snapshots
################################################################################
# Snapshot source device
# Can be any valid device identifier accepted by mount(8)
XFER_SRC_SNAPSHOTS_DEV='UUID=320fdb19-2d95-4452-aa72-fcd5c39cb390'
# Snapshot source mountpoint
XFER_SRC_SNAPSHOTS='/root/sd_snapshots'
# Snapshot source mount options
XFER_SRC_MOUNT_OPTS=('defaults' 'noatime' 'compress-force' 'subvol=/snapshots')
# Snapshot destination device is automatically defined by udev
# Snapshot destination mountpoint
XFER_DEST_SNAPSHOTS='/root/snapshot_crypt/mnt'
# Snapshot destination mount options
XFER_DEST_MOUNT_OPTS=('defaults' 'ssd' 'noatime' 'compress-force' 'subvol=/snapshots')
# Path to LUKS key-file
XFER_LUKS_KEYFILE='/root/snapshot_crypt/ss_crypt.keyfile.txt'
# Map of subvolumes to transfer
# [subvolume mountpoint] -> [subvolume name]
XFER_SUBVOLUMES=(['/']='root' ['/root']='root_home' ['/home']='home')
# Cutoff point for snapshots (ie, oldest snapshot to keep on the source)
# Must be a valid string for use in --date=STRING
# See date(1)
XFER_OLDEST_CUTOFF='3 months ago'
################################################################################
# Options for snapshot cron job
################################################################################
# The example runs every three hours at the bottom of the hour
# Blank field is the same as a wildcard field
# Minutes field (0 - 59)
CRON_MINUTES='30'
# Hours field (0 - 23)
CRON_HOURS='0,3,6,9,12,15,18,21'
# Days of month field (1 - 31)
CRON_DAYS_MONTH=''
# Months field (1 - 12) or jan,feb,...
CRON_MONTHS=''
# Days of week field (0 - 6/7) (Sunday 0/7) or mon,tue,wed,thu,fri,sat,sun
CRON_DAYS_WEEK=''
# vim: filetype=bash: