Parcourir la source

Simplifying configuration of remote backups

Bob Mottram il y a 10 ans
Parent
révision
91b2e8874f
1 fichiers modifiés avec 2 ajouts et 7 suppressions
  1. 2
    7
      src/freedombone-remote

+ 2
- 7
src/freedombone-remote Voir le fichier

34
 MY_USERNAME=$USER
34
 MY_USERNAME=$USER
35
 
35
 
36
 # Filename of the remote backups list
36
 # Filename of the remote backups list
37
-FRIENDS_SERVERS_LIST=
37
+FRIENDS_SERVERS_LIST=/home/$MY_USERNAME/backup.list
38
 
38
 
39
 # Minimum password length in characters
39
 # Minimum password length in characters
40
 MINIMUM_PASSWORD_LENGTH=10
40
 MINIMUM_PASSWORD_LENGTH=10
50
   echo ''
50
   echo ''
51
   echo ''
51
   echo ''
52
   echo '  -h --help             Show help'
52
   echo '  -h --help             Show help'
53
+  echo '  -u --username         User to create the backups.list file for'
53
   echo '  -l --list             Remote backup list (usually /home/$USER/backup.list)'
54
   echo '  -l --list             Remote backup list (usually /home/$USER/backup.list)'
54
   echo '  -m --min              Minimum password length (characters)'
55
   echo '  -m --min              Minimum password length (characters)'
55
   echo ''
56
   echo ''
56
   exit 0
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
 # Get the commandline options
60
 # Get the commandline options
66
 while [[ $# > 1 ]]
61
 while [[ $# > 1 ]]
67
 do
62
 do