aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-11 19:00:50 -0500
committerDave Reisner <d@falconindy.com>2010-01-11 19:00:50 -0500
commit6a1282f71ddd4f918042cb785269c1777cdaa22a (patch)
treed504ec39b02aecc0348ccbff065cc1a0dc360a0b
parent4ec5fa7b13c912f637737dd561afb50660d651c6 (diff)
downloadsquashfu-6a1282f71ddd4f918042cb785269c1777cdaa22a.tar.gz
Reorganize config for rolling backup strat
-rw-r--r--squashfu.conf39
1 files changed, 19 insertions, 20 deletions
diff --git a/squashfu.conf b/squashfu.conf
index 5cc77f4..6f5eb4e 100644
--- a/squashfu.conf
+++ b/squashfu.conf
@@ -13,10 +13,29 @@ COLOR=true
# by the actual backup (and inside this root).
BKUP_ROOT="/mnt/Gluttony/squashup"
+# Location of the
+BINS_DIR="${BKUP_ROOT}/bins"
+
+# Cheezy name, important file. This is a catalog of your incrementals.
+# Bad things will happen if this file is corrupted or lost.
+BINVENTORY="${BKUP_ROOT}/bin.list"
+
# Filename for the seed generated. You shouldn't need
# to change this
SEED="${BKUP_ROOT}/$HOSTNAME-seed.sfs"
+# The minimum number of incrementals Squashfu will maintain. In other
+# words, if you set this to 10, you will always be able to roll back
+# 10 backups.
+MIN_BINS=3
+
+# The maximum number of incremenetals Squashfu will maintain. When this
+# number is reached, Squashfu will automatically merge the oldest
+# incrementals until the MIN_BINS is reached. If you set your min and
+# max to be the same value, Squashfu will recompress after every backup.
+# Depending on how big your total backup size is, this may not be wise.
+MAX_BINS=10
+
# This is an optional offset for determining what bin is used
# for a nightly backup. If you run your backups in the early
# morning for the previous day's work, you'll want to set this
@@ -31,26 +50,6 @@ MODIFIER=0
# not be created properly. See 'man rsync' for more info.
RSYNC_OPTS=("-Rua" "--delete" "--stats")
-# This option determines whether the previous week's seed
-# and bins are kept when creating a fresh seed for the next
-# week. If this value is anything besides 1, the seed and bins
-# will be discarded. If you have room for a second seed,
-# keep this enabled until you are sure everything is working
-# correctly.
-KEEP_LAST_WEEK=true
-
-# Set this to the day of the week you want a resquash to occur.
-# Days are numbered according to the output of 'date +%u' -- 1
-# through 7, with 1 being Monday, 7 being Sunday. This setting
-# will not honor the MODIFIER setting above.
-#
-# WARNING: If this number is out of bounds or this day is missed,
-# you MUST request the resquash manually (see help for how to do this).
-# This is again compared to the output of 'date +%u' but does NOT take
-# into account the MODIFIER above.
-RESQUASH_DAY=7
-
-
# The following defines what will and won't be backed up. The format
# is that of a heredoc. Multiple include and exclude heredocs are NOT
# supported, although this config can be overridden in a separate config