From 899979d3bab249dc1d6d22d4b2e86a1a93f003e6 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 21 Dec 2013 09:25:53 +0100 Subject: [PATCH] handle sparse files correctly Signed-off-by: Nico Schottelius --- sync-from | 2 +- sync-to | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sync-from b/sync-from index f13b42f..72fae45 100755 --- a/sync-from +++ b/sync-from @@ -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 diff --git a/sync-to b/sync-to index 0494ab7..3c85dc3 100755 --- a/sync-to +++ b/sync-to @@ -21,7 +21,7 @@ case "$dsthost" in esac start=$(date) -rsync -av --delete --progress \ +rsync -avS --delete --progress \ --exclude '/proc/*' \ --exclude '/tmp/*' \ --exclude '/sys/*' \