mirror of
https://github.com/deajan/obackup.git
synced 2025-02-05 19:03:50 +01:00
Added conf file equivalent for --dontgetsize
This commit is contained in:
parent
ee5a770e18
commit
4ee08d0814
@ -22,6 +22,7 @@ UNDER WORK
|
|||||||
CHANGELOG
|
CHANGELOG
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
- Added a config file option equivalent to --dontgetsize
|
||||||
- Added basic install script from osync project
|
- Added basic install script from osync project
|
||||||
- Added obackup-batch.sh from osync project to rerun failed backups in row
|
- Added obackup-batch.sh from osync project to rerun failed backups in row
|
||||||
- Delta copy algorithm is now used even for local copies (usefull for network drives), this can be overriden in config file
|
- Delta copy algorithm is now used even for local copies (usefull for network drives), this can be overriden in config file
|
||||||
|
13
obackup.sh
13
obackup.sh
@ -5,7 +5,7 @@
|
|||||||
AUTHOR="(L) 2013-2015 by Orsiris \"Ozy\" de Jong"
|
AUTHOR="(L) 2013-2015 by Orsiris \"Ozy\" de Jong"
|
||||||
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr"
|
||||||
PROGRAM_VERSION=1.9pre
|
PROGRAM_VERSION=1.9pre
|
||||||
PROGRAM_BUILD=2004201501
|
PROGRAM_BUILD=2404201502
|
||||||
|
|
||||||
## type doesn't work on platforms other than linux (bash). If if doesn't work, always assume output is not a zero exitcode
|
## type doesn't work on platforms other than linux (bash). If if doesn't work, always assume output is not a zero exitcode
|
||||||
if ! type -p "$BASH" > /dev/null
|
if ! type -p "$BASH" > /dev/null
|
||||||
@ -1249,7 +1249,7 @@ function Init
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
## Set Rsync arguments
|
## Set Rsync arguments
|
||||||
RSYNC_ARGS=-rlptgoD
|
RSYNC_ARGS=-rlptgoDu
|
||||||
if [ "$PRESERVE_ACL" == "yes" ]
|
if [ "$PRESERVE_ACL" == "yes" ]
|
||||||
then
|
then
|
||||||
RSYNC_ARGS=$RSYNC_ARGS"A"
|
RSYNC_ARGS=$RSYNC_ARGS"A"
|
||||||
@ -1299,6 +1299,13 @@ function Init
|
|||||||
RSYNC_ARGS=$RSYNC_ARGS" --delete"
|
RSYNC_ARGS=$RSYNC_ARGS" --delete"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$DELTA_COPIES" != "no" ]
|
||||||
|
then
|
||||||
|
RSYNC_ARGS=$RSYNC_ARGS" --no-whole-file"
|
||||||
|
else
|
||||||
|
RSYNC_ARGS=$RSYNC_ARGS" --whole-file"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $stats -eq 1 ]
|
if [ $stats -eq 1 ]
|
||||||
then
|
then
|
||||||
RSYNC_ARGS=$RSYNC_ARGS" --stats"
|
RSYNC_ARGS=$RSYNC_ARGS" --stats"
|
||||||
@ -1389,7 +1396,7 @@ function Main
|
|||||||
if [ "$BACKUP_FILES" != "no" ]
|
if [ "$BACKUP_FILES" != "no" ]
|
||||||
then
|
then
|
||||||
ListDirectories
|
ListDirectories
|
||||||
if [ "$dontgetsize" -ne 1 ]
|
if [ "$dontgetsize" -ne 1 ] || [ "$DONT_GET_BACKUP_FILE_SIZE" == "no" ]
|
||||||
then
|
then
|
||||||
GetDirectoriesSize
|
GetDirectoriesSize
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user