Added config options to delete n last backups

This commit is contained in:
kolaente 2018-01-31 13:41:09 +01:00
parent f7d6a4787c
commit 0bb1f8f397
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 4 deletions

View File

@ -42,10 +42,9 @@ while getopts ":b:c:d:h" opt; do
max_backups=$OPTARG
;;
h)
echo "AVAILABLE OPTIONS:
-b: Folder where to store the backups.
-c: Location of the config.json file which holds all hosts you want to backup.
echo "Available Options:
-b: Folder where to store the backups. Defaults to \$PWD/backups.
-c: Location of the config.json file which holds all hosts you want to backup. Defaults to \$PWD/backup_hosts.json.
-d: Maximum number of backups to keep. Defaults to 24.
-h: Print this help message.