]> arthur.barton.de Git - backup-script.git/commitdiff
Implement --progress option (same as -p)
authorAlexander Barton <alex@barton.de>
Tue, 24 Sep 2013 08:59:17 +0000 (10:59 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 24 Sep 2013 08:59:17 +0000 (10:59 +0200)
bin/backup-script

index ee9646823bef4fcc973b49ffc1736eea7601e6c8..5f6cb1aaaa7bbd1215c26785e1d8203e5acf63ee 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 #
 # backup-script system for cloning systems using rsync
-# Copyright (c)2008-2011 Alexander Barton, alex@barton.de
+# Copyright (c)2008-2013 Alexander Barton, alex@barton.de
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -28,14 +28,14 @@ post_exec=""
 default_target=""
 default_user="root"
 
-if [ "$1" == "-p" ]; then
+if [ "$1" == "-p" -o "$1" == "--progress" ]; then
        VERBOSE=1
        shift
 fi
 
 case "$1" in
     "-"*)
-       echo "Usage: $NAME [-p] [<system> [<system> [...]]]"
+       echo "Usage: $NAME [-p|--preogress] [<system> [<system> [...]]]"
        exit 1
        ;;
 esac