aboutsummaryrefslogtreecommitdiffstats
path: root/jsaccess
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-06-18 14:18:32 +0200
committerLaurent Ghigonis <laurent@p1sec.com>2013-06-18 14:18:32 +0200
commit1daa031823be7f66ff5d6aaa7dea8f960f32f6ac (patch)
tree6b7ef44f84c24689857c1a896a991189ded8349b /jsaccess
parentjsaccess: remove tmp file before rsync (diff)
downloadlaurent-tools-1daa031823be7f66ff5d6aaa7dea8f960f32f6ac.tar.xz
laurent-tools-1daa031823be7f66ff5d6aaa7dea8f960f32f6ac.zip
jsaccess: delete remote files on rsync
Diffstat (limited to 'jsaccess')
-rwxr-xr-xjsaccess/jstore.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsaccess/jstore.sh b/jsaccess/jstore.sh
index fbf80c4..e09645a 100755
--- a/jsaccess/jstore.sh
+++ b/jsaccess/jstore.sh
@@ -233,7 +233,7 @@ action_rget() {
action_push() {
_rget
rm -f $tmp
- cmd="rsync -rvzP $store/* $rsync_uri"
+ cmd="rsync -rvzP --delete $store/* $rsync_uri"
echo "Running \"$cmd\""
$cmd
}