diff options
author | Karel Kočí <karel.koci@nic.cz> | 2017-02-15 09:09:39 +0100 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2017-02-15 09:09:39 +0100 |
commit | 6770b51f4982b67f230ead55798574ca7e589f6f (patch) | |
tree | 4e6218d1e3d791037890ef0d4f0d41bfb9e9764a /local/bin/system-backup | |
parent | 44f75ed975c0304d9b939ef6966f995af04d0d2a (diff) | |
parent | f72893956f6a816efbea098d9a3149ad26181b9b (diff) | |
download | myconfigs-6770b51f4982b67f230ead55798574ca7e589f6f.tar.gz myconfigs-6770b51f4982b67f230ead55798574ca7e589f6f.tar.bz2 myconfigs-6770b51f4982b67f230ead55798574ca7e589f6f.zip |
Merge branch 'master' of cynerd.cz:myconfigs
Diffstat (limited to 'local/bin/system-backup')
-rwxr-xr-x | local/bin/system-backup | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/local/bin/system-backup b/local/bin/system-backup index c3957ab..afd57d4 100755 --- a/local/bin/system-backup +++ b/local/bin/system-backup @@ -44,7 +44,8 @@ mount $MARGS "$PART" "$MPATH" || (echo Mount failed && exit -3) # Do backup while read -r DIR; do echo -e "\e[1;33mBacking up: $DIR\e[0m" - rsync -a --progress "$DIR" "$MPATH"/@"$MNAME"/ + rsync -aAXS --delete --progress "$DIR" "$MPATH"/@"$MNAME"/ || [ $? -eq 24 ] + # We ignore exit code if rsync detects vanished source file done <<< "$DIRS" # Do snapshot (read only) |