aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README1
-rwxr-xr-xsquashfu4
-rw-r--r--squashfu.conf6
3 files changed, 11 insertions, 0 deletions
diff --git a/README b/README
index 0e33579..83c2397 100644
--- a/README
+++ b/README
@@ -118,3 +118,4 @@ In no particular order....
- Fix output funcs for non-color scenario
- Add semantic error checking for config
- Create man page
+- Make config more helpful by providing possible values, not just verbiage
diff --git a/squashfu b/squashfu
index 8e167af..7694c80 100755
--- a/squashfu
+++ b/squashfu
@@ -260,6 +260,10 @@ action_backup () {
create_new_incremental
+ if [[ $? -gt 0 && $DEL_BIN_ON_FAIL == "true" ]]; then
+ # Remove the physical bin and edit binlist
+ fi
+
check_for_resquash
if [[ val=$? -gt 0 ]]; then
create_new_squash $val
diff --git a/squashfu.conf b/squashfu.conf
index fd53091..946b63b 100644
--- a/squashfu.conf
+++ b/squashfu.conf
@@ -40,6 +40,12 @@ 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.
+DEL_BIN_ON_FAIL=false
+
# These are the options that are passed directly to rsync.
# The -u flag is a necessity, or else incrementals will
# not be true incrementals. See 'man rsync' for more info.