Simplifying configuration of remote backups

This commit is contained in:
Bob Mottram 2015-04-10 13:02:17 +01:00
parent b525fcd393
commit 91b2e8874f
1 changed files with 2 additions and 7 deletions

View File

@ -34,7 +34,7 @@ NO_OF_ARGS=$#
MY_USERNAME=$USER MY_USERNAME=$USER
# Filename of the remote backups list # Filename of the remote backups list
FRIENDS_SERVERS_LIST= FRIENDS_SERVERS_LIST=/home/$MY_USERNAME/backup.list
# Minimum password length in characters # Minimum password length in characters
MINIMUM_PASSWORD_LENGTH=10 MINIMUM_PASSWORD_LENGTH=10
@ -50,18 +50,13 @@ function show_help {
echo '' echo ''
echo '' echo ''
echo ' -h --help Show help' echo ' -h --help Show help'
echo ' -u --username User to create the backups.list file for'
echo ' -l --list Remote backup list (usually /home/$USER/backup.list)' echo ' -l --list Remote backup list (usually /home/$USER/backup.list)'
echo ' -m --min Minimum password length (characters)' echo ' -m --min Minimum password length (characters)'
echo '' echo ''
exit 0 exit 0
} }
# If there are no options specified
if [[ $NO_OF_ARGS == 0 ]]; then
show_help
exit 0
fi
# Get the commandline options # Get the commandline options
while [[ $# > 1 ]] while [[ $# > 1 ]]
do do