diff options
author | Dave Reisner <d@falconindy.com> | 2010-01-18 11:00:08 -0500 |
---|---|---|
committer | Dave Reisner <d@falconindy.com> | 2010-01-18 11:00:08 -0500 |
commit | 647eb3ec4c9d35fd7439a45b6ea48fa04d77f484 (patch) | |
tree | f3e09ad8a18ab24629d5aac3e28d71df9dd9c4bc | |
parent | afedb407cc2aba113f4a774fac5840fe80282e30 (diff) | |
download | squashfu-647eb3ec4c9d35fd7439a45b6ea48fa04d77f484.tar.gz |
New branch. Goal: optional rollback when rsync fails
-rw-r--r-- | README | 1 | ||||
-rwxr-xr-x | squashfu | 4 | ||||
-rw-r--r-- | squashfu.conf | 6 |
3 files changed, 11 insertions, 0 deletions
@@ -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 @@ -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. |