diff options
author | Peter Palfrader <peter@palfrader.org> | 2012-10-16 18:42:59 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2012-10-16 18:42:59 +0000 |
commit | 821c4428bfd326b4efc276c4ea23a7fbea88d082 (patch) | |
tree | 4c288afa3cee0be290173cefbbdd00adc48d22ef /publish | |
parent | 6683847ffce3d3d8d6243b9075f178ef82a86a5c (diff) |
update rsync args handling as suggested by Stefan Huber
rsync_args is now set before we load the ~/.publish.cfg file
so the user can overwrite it. --recursive moved to the rsync
call itself, so it is always included. --partial has been removed
from the default set.
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@555 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'publish')
-rwxr-xr-x | publish | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -51,6 +51,7 @@ history_file=~/.publish.history history_lines=1000 date_format='%Y-%m-%d-' +rsync_args="--compress --times" rsync_pre_invoke() { true ;} rsync_post_invoke() { true ;} @@ -197,7 +198,6 @@ fi d_date=$(date +"$date_format") d_random=$(get_random) d_server="$d_date$d_random" -rsync_args="--partial --recursive --compress --times" d_server_http_base=$( echo -n "$d_server" | uri_encode ) base_uri="$base_http/$d_server_http_base/" @@ -252,7 +252,7 @@ while [ "$#" -gt 0 ]; do history_append "$uri" rsync_pre_invoke - $NODO rsync $rsync_args "$file$trail" $base_rsync"/$d_server/" + $NODO rsync --recursive $rsync_args "$file$trail" $base_rsync"/$d_server/" rsync_post_invoke done |