aboutsummaryrefslogtreecommitdiffstats
path: root/jsaccess/jstore.sh
diff options
context:
space:
mode:
authorLaurent Ghigonis <user@charon>2013-06-19 14:26:49 +0200
committerLaurent Ghigonis <user@charon>2013-06-19 14:26:49 +0200
commit608d2ba6ef1dcf8fc68963d591b00be243522bbc (patch)
treec1a9119548e4e15c77e8c8145ac122982b6b31e4 /jsaccess/jstore.sh
parentjsaccess: add "jstore edit" (diff)
downloadlaurent-tools-608d2ba6ef1dcf8fc68963d591b00be243522bbc.tar.xz
laurent-tools-608d2ba6ef1dcf8fc68963d591b00be243522bbc.zip
jsaccess: use rsync -P --delete-after
Diffstat (limited to 'jsaccess/jstore.sh')
-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\""