diff options
author | Dave Reisner <d@falconindy.com> | 2010-01-12 20:29:40 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-01-12 20:29:40 -0500 |
commit | bed9e9725bba7d1b0853833247d79aa2fc8ad0df (patch) | |
tree | 530662ce0cf57ecb51832376bff8758492941c54 | |
parent | 757e28dde46cb4808d87502276d6cf2e30feb6b6 (diff) | |
download | squashfu-bed9e9725bba7d1b0853833247d79aa2fc8ad0df.tar.gz |
Convert incls/excls to arrays....
-rwxr-xr-x | squashfu | 2 | ||||
-rw-r--r-- | squashfu.conf | 13 |
2 files changed, 7 insertions, 8 deletions
@@ -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 |