Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 74 lines (57 sloc) 2.353 kB
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored
1 # Config file for Super Deluxe SquashFu Backup Express
2
3 # Show debugging information. This might be useful in the event
4 # you need to troubleshoot.
d5a5d22 @falconindy Sanitize config for user digestion
authored
5 DEBUG=false
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored
6
7 # Use color in informational output
8 COLOR=true
9
10 # The base directory where backups will go.
11 # This is the only directory that absolutely needs to be
12 # created by the user. All others will be created as needed
13 # by the actual backup (and inside this root).
d5a5d22 @falconindy Sanitize config for user digestion
authored
14 BKUP_ROOT="/this/is/intentionally/a/bad/path"
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored
15
6a1282f @falconindy Reorganize config for rolling backup strat
authored
16 # Location of the
2b4d557 @falconindy Prefix bin directory and binventory with . to hide
authored
17 BINS_DIR="${BKUP_ROOT}/.bins"
6a1282f @falconindy Reorganize config for rolling backup strat
authored
18
d8541fe @falconindy Add declarations for squash and union mount points
authored
19 # Mount directories for the union and the squash.
20 SQUASH_MOUNT="${BKUP_ROOT}/ro"
21 UNION_MOUNT="${BKUP_ROOT}/rw"
22
6a1282f @falconindy Reorganize config for rolling backup strat
authored
23 # Cheezy name, important file. This is a catalog of your incrementals.
24 # Bad things will happen if this file is corrupted or lost.
dce59c2 @falconindy Move default location of inventory file to /var/lib so it has a bette…
authored
25 BINVENTORY="/var/lib/squashfu.inv"
6a1282f @falconindy Reorganize config for rolling backup strat
authored
26
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored
27 # Filename for the seed generated. You shouldn't need
28 # to change this
29 SEED="${BKUP_ROOT}/$HOSTNAME-seed.sfs"
30
6a1282f @falconindy Reorganize config for rolling backup strat
authored
31 # The minimum number of incrementals Squashfu will maintain. In other
32 # words, if you set this to 10, you will always be able to roll back
33 # 10 backups.
d8541fe @falconindy Add declarations for squash and union mount points
authored
34 MIN_BINS=5
6a1282f @falconindy Reorganize config for rolling backup strat
authored
35
36 # The maximum number of incremenetals Squashfu will maintain. When this
37 # number is reached, Squashfu will automatically merge the oldest
38 # incrementals until the MIN_BINS is reached. If you set your min and
39 # max to be the same value, Squashfu will recompress after every backup.
40 # Depending on how big your total backup size is, this may not be wise.
3765a15 @falconindy Add warning about max branch limit
authored
41 # Warning: Without recompiling aufs, there is a limit of 127 branches
42 # for an AUFS mount, which means you cannot exceed 127 MAX_BINS.
6a1282f @falconindy Reorganize config for rolling backup strat
authored
43 MAX_BINS=10
44
583dac2 @falconindy Convert DEL_BIN_ON_FAIL to an array. Only fail on error 1 (syntax) by…
authored
45 # Specify the rsync errors which, when encountered, will trigger
46 # squashfu to consider the backup to be invalid, and undo the changes
47 # it has already done. That is -- delete the newly allocated bin and
48 # update the inventory. See rsync's man page for details about the
49 # various exit codes.
50 # DEL_BIN_ON_FAIL=(1 2 3 10 11 12)
51 DEL_BIN_ON_FAIL=(1)
647eb3e @falconindy New branch. Goal: optional rollback when rsync fails
authored
52
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored
53 # These are the options that are passed directly to rsync.
54 # The -u flag is a necessity, or else incrementals will
d8541fe @falconindy Add declarations for squash and union mount points
authored
55 # not be true incrementals. See 'man rsync' for more info.
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored
56 RSYNC_OPTS=("-Rua" "--delete" "--stats")
57
bed9e97 @falconindy Convert incls/excls to arrays....
authored
58 # The following defines what will and won't be backed up. These are
59 # simply Bash arrays and are interpreted as such.
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored
60
bed9e97 @falconindy Convert incls/excls to arrays....
authored
61 INCLUDES=(
300ac9d @falconindy Convert include/exclude declaration to a heredoc
authored
62 /home
757e28d @falconindy Convert include/exclude heredocs to simple variables. I'm sure I'll e…
authored
63 /etc
d5a5d22 @falconindy Sanitize config for user digestion
authored
64 /usr
65 /var
bed9e97 @falconindy Convert incls/excls to arrays....
authored
66 ) #end includes
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored
67
bed9e97 @falconindy Convert incls/excls to arrays....
authored
68 EXCLUDES=(
d5a5d22 @falconindy Sanitize config for user digestion
authored
69 /lost+found
757e28d @falconindy Convert include/exclude heredocs to simple variables. I'm sure I'll e…
authored
70 /var/log
bed9e97 @falconindy Convert incls/excls to arrays....
authored
71 ) #end excludes
d8541fe @falconindy Add declarations for squash and union mount points
authored
72
73
Something went wrong with that request. Please try again.