aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-06-19 18:53:20 +0200
committerLaurent Ghigonis <laurent@p1sec.com>2013-06-19 18:53:20 +0200
commit47870affaab234666a94d0b211554cc693783333 (patch)
tree7a2f26751a3a41e79007d8a026d5e9f1510b31b1
parenttools: add yeshttpd, the always kind HTTP daemon (diff)
parentjsaccess: use rsync -P --delete-after (diff)
downloadlaurent-tools-47870affaab234666a94d0b211554cc693783333.tar.xz
laurent-tools-47870affaab234666a94d0b211554cc693783333.zip
Merge branch 'master' of git.zx2c4.com:laurent-tools
-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\""