aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2010-01-20 19:03:22 -0500
committerDave Reisner <d@falconindy.com>2010-01-20 19:03:22 -0500
commit583dac2d3729b30678e2dc9995075f00494d65ff (patch)
treed95653283d77d1df29a72e214b72372e88e8b38e
parent0c0653410f04f89a9d42ebcf50632cc903cf4ee2 (diff)
downloadsquashfu-583dac2d3729b30678e2dc9995075f00494d65ff.tar.gz
Convert DEL_BIN_ON_FAIL to an array. Only fail on error 1 (syntax) by default
-rw-r--r--squashfu.conf16
1 files changed, 7 insertions, 9 deletions
diff --git a/squashfu.conf b/squashfu.conf
index ba444da..fa76de6 100644
--- a/squashfu.conf
+++ b/squashfu.conf
@@ -40,15 +40,13 @@ MIN_BINS=5
# Depending on how big your total backup size is, this may not be wise.
MAX_BINS=10
-# If rsync returns anything but a 0, the backup is considered to be
-# aborted before completion (or never started). Set this to be 'true'
-# if you want the newly created bin to be removed when an rsync failure
-# is detected.
-# Warning: This does not (yet) account for errors like 23 or 24 which can
-# signify problems during the backup but which may not affect the overall
-# integrity of the backup. This may eventually turn into an array for which
-# the user can specify error codes which will cause a deletion when thrown.
-DEL_BIN_ON_FAIL=false
+# Specify the rsync errors which, when encountered, will trigger
+# squashfu to consider the backup to be invalid, and undo the changes
+# it has already done. That is -- delete the newly allocated bin and
+# update the inventory. See rsync's man page for details about the
+# various exit codes.
+# DEL_BIN_ON_FAIL=(1 2 3 10 11 12)
+DEL_BIN_ON_FAIL=(1)
# These are the options that are passed directly to rsync.
# The -u flag is a necessity, or else incrementals will