From 821c4428bfd326b4efc276c4ea23a7fbea88d082 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 16 Oct 2012 18:42:59 +0000 Subject: 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 --- publish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/publish b/publish index 2bdec5b..f5b7ddb 100755 --- a/publish +++ b/publish @@ -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 -- cgit v1.2.3