aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-10 12:42:21 -0500
committerDave Reisner <d@falconindy.com>2010-01-10 12:42:21 -0500
commit1fa16e22c66beca32154acaf2d66cce66a1ad68b (patch)
treed78b55a902d66624e566856f69849dcb04cd28ec
parentacaeef1bcd51183bd0d5e6ef79386d6fc9e55c2e (diff)
downloadsquashfu-1fa16e22c66beca32154acaf2d66cce66a1ad68b.tar.gz
Stupid mistake -- excludes weren't actually excluded
-rwxr-xr-xsquashfu8
1 files changed, 6 insertions, 2 deletions
diff --git a/squashfu b/squashfu
index a78655d..7aa3346 100755
--- a/squashfu
+++ b/squashfu
@@ -66,6 +66,8 @@ do_backup () {
# Force flush of pseudo links on branches to ensure clean dismount
# Our umount.aufs helper can do this for us, but it doesn't handle
# rsync hangups very well.
+ sleep 5
+ auplink "${BKUP_ROOT}/rw" flush
# Is there reason to resquash?
[[ $(date +%u) -eq $RESQUASH_DAY || $RESQUASH_AFTER ]] && {
@@ -147,7 +149,9 @@ run_rsync() {
# No error checking here -- user better not have
# effed up the config
INCLUDES=($(sed -n '/^<<INCLUDES$/,/^INCLUDES$/p' $CONFIG | grep -vE "^<*INCLUDES$"))
- EXCLUDES=($(sed -n '/^<<EXCLUDES$/,/^EXCLUDES$/p' $CONFIG | grep -vE "^<*EXCLUDES$"))
+ EXCLUDES=($(sed -n '/^<<EXCLUDES$/,/^EXCLUDES$/p' $CONFIG | \
+ grep -vE "^<*EXCLUDES$" | \
+ sed -n 's/\(.*\)/--exclude "\1"/p'))
# rsync source to $BKUP_ROOT/rw
debug "Rsync executing with:"
@@ -170,7 +174,7 @@ unmount_all () {
#Union must be unmounted first, or bad things happen
unmount_custom
unmount_union
- unmount_seed
+ #unmount_seed
}
unmount_custom () {