From 2b809807ef4d2f7a4c820b845fc939871a2a5150 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Wed, 8 May 2013 11:18:13 +0200 Subject: [PATCH] New configuration options "user" and "target" --- bin/backup-script | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/backup-script b/bin/backup-script index 6122178..ee96468 100755 --- a/bin/backup-script +++ b/bin/backup-script @@ -25,6 +25,8 @@ declare -i count_ok_vanished=0 destinations="" pre_exec="" post_exec="" +default_target="" +default_user="root" if [ "$1" == "-p" ]; then VERBOSE=1 @@ -129,8 +131,8 @@ for f in $sys; do [ -r "$f" -a -f "$f" ] || continue system=`basename $f` - user="root" - target="" + user="$default_user" + target="$default_target" ssh_args_add="" rsync_args_add="" compress=1 -- 2.39.2