From 583dac2d3729b30678e2dc9995075f00494d65ff Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Wed, 20 Jan 2010 19:03:22 -0500 Subject: Convert DEL_BIN_ON_FAIL to an array. Only fail on error 1 (syntax) by default --- squashfu.conf | 16 +++++++--------- 1 file 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 -- cgit v1.2.3