diff options
author | Karel Kočí <cynerd@email.cz> | 2017-03-24 21:26:37 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-03-24 21:26:37 +0100 |
commit | ae7ae956d0ac47c36f02c62627094e8358e724d9 (patch) | |
tree | 6a19bf4d29a198767e240390ae8d9272bf5ee1ae /local | |
parent | 64dc44f819119d31485d776e9c371f1ed12d07f6 (diff) | |
download | myconfigs-ae7ae956d0ac47c36f02c62627094e8358e724d9.tar.gz myconfigs-ae7ae956d0ac47c36f02c62627094e8358e724d9.tar.bz2 myconfigs-ae7ae956d0ac47c36f02c62627094e8358e724d9.zip |
Rsync don't cross file system boundaries
Diffstat (limited to 'local')
-rwxr-xr-x | local/bin/system-backup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/local/bin/system-backup b/local/bin/system-backup index afd57d4..dfa2c09 100755 --- a/local/bin/system-backup +++ b/local/bin/system-backup @@ -44,7 +44,7 @@ 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 -aAXS --delete --progress "$DIR" "$MPATH"/@"$MNAME"/ || [ $? -eq 24 ] + rsync -aAxXS --delete --progress "$DIR" "$MPATH"/@"$MNAME"/ || [ $? -eq 24 ] # We ignore exit code if rsync detects vanished source file done <<< "$DIRS" |