aboutsummaryrefslogtreecommitdiff
path: root/local
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-03-24 21:26:37 +0100
committerKarel Kočí <cynerd@email.cz>2017-03-24 21:26:37 +0100
commitae7ae956d0ac47c36f02c62627094e8358e724d9 (patch)
tree6a19bf4d29a198767e240390ae8d9272bf5ee1ae /local
parent64dc44f819119d31485d776e9c371f1ed12d07f6 (diff)
downloadmyconfigs-ae7ae956d0ac47c36f02c62627094e8358e724d9.tar.gz
myconfigs-ae7ae956d0ac47c36f02c62627094e8358e724d9.tar.bz2
myconfigs-ae7ae956d0ac47c36f02c62627094e8358e724d9.zip
Rsync don't cross file system boundaries
Diffstat (limited to 'local')
-rwxr-xr-xlocal/bin/system-backup2
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"