aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsquashfu2
-rw-r--r--squashfu.conf13
2 files changed, 7 insertions, 8 deletions
diff --git a/squashfu b/squashfu
index b404fd9..3ec636a 100755
--- a/squashfu
+++ b/squashfu
@@ -83,7 +83,7 @@ create_new_incremental () {
#EXCLUDES=($(sed -n '/^<<EXCLUDES$/,/^EXCLUDES$/p' $CONFIG | \
# grep -vE "^<*EXCLUDES$" | \
# sed -n 's/\(.*\)/--exclude \1/p'))
- EXCLUDES=$(for excl in $EXCLUDES; do echo --exclude $excl; done)
+ EXCLUDES=$(for excl in ${EXCLUDES[@]}; do echo --exclude $excl; done)
exit 1
debug "rsync ${RSYNC_OPTS[@]} ${INCLUDES[@]} ${EXCLUDES[@]} "$UNION_MOUNT""
diff --git a/squashfu.conf b/squashfu.conf
index 27e3b3d..fd53091 100644
--- a/squashfu.conf
+++ b/squashfu.conf
@@ -45,20 +45,19 @@ MAX_BINS=10
# not be true incrementals. See 'man rsync' for more info.
RSYNC_OPTS=("-Rua" "--delete" "--stats")
-# The following defines what will and won't be backed up. The format
-# is simply a multi line quoted variable, so you'll need to either single
-# quote or escape white spaces and special characters in your paths.
+# The following defines what will and won't be backed up. These are
+# simply Bash arrays and are interpreted as such.
-INCLUDES="
+INCLUDES=(
/home
/etc
/usr
/var
-" #end includes
+) #end includes
-EXCLUDES="
+EXCLUDES=(
/lost+found
/var/log
-" #end excludes
+) #end excludes