Browse Source

Simplifying configuration of remote backups

Bob Mottram 10 years ago
parent
commit
91b2e8874f
1 changed files with 2 additions and 7 deletions
  1. 2
    7
      src/freedombone-remote

+ 2
- 7
src/freedombone-remote View File

@@ -34,7 +34,7 @@ NO_OF_ARGS=$#
34 34
 MY_USERNAME=$USER
35 35
 
36 36
 # Filename of the remote backups list
37
-FRIENDS_SERVERS_LIST=
37
+FRIENDS_SERVERS_LIST=/home/$MY_USERNAME/backup.list
38 38
 
39 39
 # Minimum password length in characters
40 40
 MINIMUM_PASSWORD_LENGTH=10
@@ -50,18 +50,13 @@ function show_help {
50 50
   echo ''
51 51
   echo ''
52 52
   echo '  -h --help             Show help'
53
+  echo '  -u --username         User to create the backups.list file for'
53 54
   echo '  -l --list             Remote backup list (usually /home/$USER/backup.list)'
54 55
   echo '  -m --min              Minimum password length (characters)'
55 56
   echo ''
56 57
   exit 0
57 58
 }
58 59
 
59
-# If there are no options specified
60
-if [[ $NO_OF_ARGS == 0 ]]; then
61
-  show_help
62
-  exit 0
63
-fi
64
-
65 60
 # Get the commandline options
66 61
 while [[ $# > 1 ]]
67 62
 do