mirror of
https://github.com/deajan/obackup.git
synced 2024-11-15 04:03:41 +01:00
Allow --partial, --delete and --dontgetsize to override config files
This commit is contained in:
parent
27a2b26473
commit
ee689da7f3
@ -7,7 +7,7 @@ PROGRAM="obackup"
|
|||||||
AUTHOR="(C) 2013-2017 by Orsiris de Jong"
|
AUTHOR="(C) 2013-2017 by Orsiris de Jong"
|
||||||
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
||||||
PROGRAM_VERSION=2.1-beta2
|
PROGRAM_VERSION=2.1-beta2
|
||||||
PROGRAM_BUILD=2017021001
|
PROGRAM_BUILD=2017062001
|
||||||
IS_STABLE=no
|
IS_STABLE=no
|
||||||
|
|
||||||
#### Execution order #__WITH_PARANOIA_DEBUG
|
#### Execution order #__WITH_PARANOIA_DEBUG
|
||||||
@ -1889,7 +1889,9 @@ function Usage {
|
|||||||
_DRYRUN=false
|
_DRYRUN=false
|
||||||
no_maxtime=false
|
no_maxtime=false
|
||||||
stats=false
|
stats=false
|
||||||
PARTIAL=no
|
partial_transfers=false
|
||||||
|
delete_vanished=false
|
||||||
|
dont_get_backup_size=false
|
||||||
_DECRYPT_MODE=false
|
_DECRYPT_MODE=false
|
||||||
DECRYPT_PATH=""
|
DECRYPT_PATH=""
|
||||||
_ENCRYPT_MODE=false
|
_ENCRYPT_MODE=false
|
||||||
@ -1914,16 +1916,16 @@ function GetCommandlineArguments {
|
|||||||
stats=false
|
stats=false
|
||||||
;;
|
;;
|
||||||
--partial)
|
--partial)
|
||||||
PARTIAL="yes"
|
partial_transfers=true
|
||||||
;;
|
;;
|
||||||
--no-maxtime)
|
--no-maxtime)
|
||||||
no_maxtime=true
|
no_maxtime=true
|
||||||
;;
|
;;
|
||||||
--delete)
|
--delete)
|
||||||
DELETE_VANISHED_FILES="yes"
|
delete_vanished=true
|
||||||
;;
|
;;
|
||||||
--dontgetsize)
|
--dontgetsize)
|
||||||
GET_BACKUP_SIZE="no"
|
dont_get_backup_size=true
|
||||||
;;
|
;;
|
||||||
--help|-h|--version|-v)
|
--help|-h|--version|-v)
|
||||||
Usage
|
Usage
|
||||||
@ -2029,5 +2031,16 @@ if [ $no_maxtime == true ]; then
|
|||||||
HARD_MAX_EXEC_TIME_FILE_TASK=0
|
HARD_MAX_EXEC_TIME_FILE_TASK=0
|
||||||
HARD_MAX_EXEC_TIME_TOTAL=0
|
HARD_MAX_EXEC_TIME_TOTAL=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $partial_transfers == true ]; then
|
||||||
|
PARTIAL="yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $delete_vanished == true ]; then
|
||||||
|
DELETE_VANISHED_FILES="yes"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $dont_get_backup_size == true ]; then
|
||||||
|
GET_BACKUP_SIZE="no"
|
||||||
RunBeforeHook
|
RunBeforeHook
|
||||||
Main
|
Main
|
||||||
|
Loading…
Reference in New Issue
Block a user