Skip to content
Newer
Older
100644 72 lines (55 sloc) 2.17 KB
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored Jan 8, 2010
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 Jan 12, 2010
5 DEBUG=false
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored Jan 8, 2010
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 Jan 13, 2010
14 BKUP_ROOT="/this/is/intentionally/a/bad/path"
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored Jan 8, 2010
15
6a1282f @falconindy Reorganize config for rolling backup strat
authored Jan 11, 2010
16 # Location of the
2b4d557 @falconindy Prefix bin directory and binventory with . to hide
authored Jan 11, 2010
17 BINS_DIR="${BKUP_ROOT}/.bins"
6a1282f @falconindy Reorganize config for rolling backup strat
authored Jan 12, 2010
18
d8541fe @falconindy Add declarations for squash and union mount points
authored Jan 12, 2010
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 Jan 12, 2010
23 # Cheezy name, important file. This is a catalog of your incrementals.
24 # Bad things will happen if this file is corrupted or lost.
2b4d557 @falconindy Prefix bin directory and binventory with . to hide
authored Jan 12, 2010
25 BINVENTORY="${BKUP_ROOT}/.bin.list"
6a1282f @falconindy Reorganize config for rolling backup strat
authored Jan 12, 2010
26
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored Jan 8, 2010
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 Jan 12, 2010
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 Jan 12, 2010
34 MIN_BINS=5
6a1282f @falconindy Reorganize config for rolling backup strat
authored Jan 12, 2010
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.
41 MAX_BINS=10
42
583dac2 @falconindy Convert DEL_BIN_ON_FAIL to an array. Only fail on error 1 (syntax) by…
authored Jan 20, 2010
43 # Specify the rsync errors which, when encountered, will trigger
44 # squashfu to consider the backup to be invalid, and undo the changes
45 # it has already done. That is -- delete the newly allocated bin and
46 # update the inventory. See rsync's man page for details about the
47 # various exit codes.
48 # DEL_BIN_ON_FAIL=(1 2 3 10 11 12)
49 DEL_BIN_ON_FAIL=(1)
647eb3e @falconindy New branch. Goal: optional rollback when rsync fails
authored Jan 18, 2010
50
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored Jan 8, 2010
51 # These are the options that are passed directly to rsync.
52 # The -u flag is a necessity, or else incrementals will
d8541fe @falconindy Add declarations for squash and union mount points
authored Jan 12, 2010
53 # not be true incrementals. See 'man rsync' for more info.
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored Jan 8, 2010
54 RSYNC_OPTS=("-Rua" "--delete" "--stats")
55
bed9e97 @falconindy Convert incls/excls to arrays....
authored Jan 12, 2010
56 # The following defines what will and won't be backed up. These are
57 # simply Bash arrays and are interpreted as such.
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored Jan 8, 2010
58
bed9e97 @falconindy Convert incls/excls to arrays....
authored Jan 13, 2010
59 INCLUDES=(
300ac9d @falconindy Convert include/exclude declaration to a heredoc
authored Jan 9, 2010
60 /home
757e28d @falconindy Convert include/exclude heredocs to simple variables. I'm sure I'll e…
authored Jan 12, 2010
61 /etc
d5a5d22 @falconindy Sanitize config for user digestion
authored Jan 13, 2010
62 /usr
63 /var
bed9e97 @falconindy Convert incls/excls to arrays....
authored Jan 13, 2010
64 ) #end includes
a2694d7 @falconindy Add .conf extension, add options for color and debug output
authored Jan 8, 2010
65
bed9e97 @falconindy Convert incls/excls to arrays....
authored Jan 13, 2010
66 EXCLUDES=(
d5a5d22 @falconindy Sanitize config for user digestion
authored Jan 13, 2010
67 /lost+found
757e28d @falconindy Convert include/exclude heredocs to simple variables. I'm sure I'll e…
authored Jan 13, 2010
68 /var/log
bed9e97 @falconindy Convert incls/excls to arrays....
authored Jan 13, 2010
69 ) #end excludes
d8541fe @falconindy Add declarations for squash and union mount points
authored Jan 12, 2010
70
71
Something went wrong with that request. Please try again.