handle sparse files correctly

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2013-12-21 09:25:53 +01:00
parent 9e0dcf4729
commit 899979d3ba
2 changed files with 2 additions and 2 deletions

View File

@ -30,6 +30,6 @@ sshconfig=$sshdir/config
d1=$(date)
set -x
rsync -av -e "ssh -i $sshkey -F $sshconfig" --delete "$src" "$dst"
rsync -avS -e "ssh -i $sshkey -F $sshconfig" --delete "$src" "$dst"
echo $d1
date

View File

@ -21,7 +21,7 @@ case "$dsthost" in
esac
start=$(date)
rsync -av --delete --progress \
rsync -avS --delete --progress \
--exclude '/proc/*' \
--exclude '/tmp/*' \
--exclude '/sys/*' \