aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xjsaccess/jstore.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/jsaccess/jstore.sh b/jsaccess/jstore.sh
index 4539ff2..39b6075 100755
--- a/jsaccess/jstore.sh
+++ b/jsaccess/jstore.sh
@@ -290,7 +290,7 @@ action_wipe() {
action_push() {
_rget
rm -f $tmp
- cmd="rsync -rvzP --delete $store/ $rsync_uri"
+ cmd="rsync -rvzP --delete-after $store/ $rsync_uri"
echo "Running \"$cmd\""
$cmd
}
@@ -308,7 +308,7 @@ action_clone() {
rsync_uri=$1
store=$2
[ -e $store ] && echo "ERROR: $store already exists" && clean_exit 1
- cmd="rsync -rvzP --delete $rsync_uri $store"
+ cmd="rsync -rvzP --delete-after $rsync_uri $store"
echo "Running \"$cmd\""
$cmd
echo "CREATED store \"store\""