]> arthur.barton.de Git - backup-script.git/commitdiff
New configuration options "user" and "target"
authorAlexander Barton <alex@barton.de>
Wed, 8 May 2013 09:18:13 +0000 (11:18 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 8 May 2013 09:18:13 +0000 (11:18 +0200)
bin/backup-script

index 61221787a61acdece0fee91cae0626d6196cb233..ee9646823bef4fcc973b49ffc1736eea7601e6c8 100755 (executable)
@@ -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