1
0
mirror of https://github.com/deajan/obackup.git synced 2024-11-15 04:03:41 +01:00

Rebuilt targets

This commit is contained in:
deajan 2018-07-30 16:39:23 +02:00
parent 3632fd3972
commit c57688b035
2 changed files with 24 additions and 24 deletions

View File

@ -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-beta5 PROGRAM_VERSION=2.1-beta5
PROGRAM_BUILD=2018083002 PROGRAM_BUILD=2018083003
IS_STABLE=no IS_STABLE=no
#### Execution order #__WITH_PARANOIA_DEBUG #### Execution order #__WITH_PARANOIA_DEBUG
@ -2694,7 +2694,7 @@ function _ListRecursiveBackupDirectoriesLocal {
# Make sure there is only one trailing slash # Make sure there is only one trailing slash
directory="${directory%/}/" directory="${directory%/}/"
# No sudo here, assuming you should have all necessary rights for local checks # No sudo here, assuming you should have all necessary rights for local checks
cmd="$FIND_CMD -L $directory/ -mindepth 1 -maxdepth 1 -type d >> $RUN_DIR/$PROGRAM.${FUNCNAME[0]}.$SCRIPT_PID.$TSTAMP 2> $RUN_DIR/$PROGRAM.${FUNCNAME[0]}.error.$SCRIPT_PID.$TSTAMP" cmd="$FIND_CMD -L $directory -mindepth 1 -maxdepth 1 -type d >> $RUN_DIR/$PROGRAM.${FUNCNAME[0]}.$SCRIPT_PID.$TSTAMP 2> $RUN_DIR/$PROGRAM.${FUNCNAME[0]}.error.$SCRIPT_PID.$TSTAMP"
Logger "Launching command [$cmd]." "DEBUG" Logger "Launching command [$cmd]." "DEBUG"
eval "$cmd" eval "$cmd"
retval=$? retval=$?
@ -2863,7 +2863,7 @@ function _ListRecursiveBackupDirectoriesRemoteSub {
for directory in "${directories[@]}"; do for directory in "${directories[@]}"; do
# Make sure there is only one trailing slash # Make sure there is only one trailing slash
directory="${directory%/}/" directory="${directory%/}/"
cmd="$REMOTE_FIND_CMD -L \"$directory\"/ -mindepth 1 -maxdepth 1 -type d" cmd="$REMOTE_FIND_CMD -L \"$directory\" -mindepth 1 -maxdepth 1 -type d"
Logger "Launching command [$cmd]." "DEBUG" Logger "Launching command [$cmd]." "DEBUG"
eval $cmd eval $cmd
retval=$? retval=$?
@ -4217,10 +4217,10 @@ function FilesBackup {
if [ "$KEEP_ABSOLUTE_PATHS" != "no" ]; then if [ "$KEEP_ABSOLUTE_PATHS" != "no" ]; then
# Fix for backup of '/' # Fix for backup of '/'
if [ "${backupTask#/}" == "/" ]; then if [ "${backupTask#/}/" == "/" ]; then
destinationDir="$FILE_STORAGE/${backupTask#/}" destinationDir="$FILE_STORAGE/"
else else
destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}") destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}/")
fi fi
else else
destinationDir="$FILE_STORAGE" destinationDir="$FILE_STORAGE"
@ -4252,10 +4252,10 @@ function FilesBackup {
if [ "$KEEP_ABSOLUTE_PATHS" != "no" ]; then if [ "$KEEP_ABSOLUTE_PATHS" != "no" ]; then
# Fix for backup of '/' # Fix for backup of '/'
if [ "${backupTask#/}" == "/" ]; then if [ "${backupTask#/}/" == "/" ]; then
destinationDir="$FILE_STORAGE/${backupTask#/}" destinationDir="$FILE_STORAGE/"
else else
destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}") destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}/")
fi fi
encryptDir="$FILE_STORAGE/${backupTask#/}" encryptDir="$FILE_STORAGE/${backupTask#/}"
else else
@ -4288,10 +4288,10 @@ function FilesBackup {
if [ "$KEEP_ABSOLUTE_PATHS" != "no" ]; then if [ "$KEEP_ABSOLUTE_PATHS" != "no" ]; then
# Fix for backup of '/' # Fix for backup of '/'
if [ "${backupTask#/}" == "/" ]; then if [ "${backupTask#/}/" == "/" ]; then
destinationDir="$FILE_STORAGE/${backupTask#/}" destinationDir="$FILE_STORAGE/"
else else
destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}") destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}/")
fi fi
else else
destinationDir="$FILE_STORAGE" destinationDir="$FILE_STORAGE"

View File

@ -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-beta5 PROGRAM_VERSION=2.1-beta5
PROGRAM_BUILD=2018083002 PROGRAM_BUILD=2018083003
IS_STABLE=no IS_STABLE=no
@ -2542,7 +2542,7 @@ function _ListRecursiveBackupDirectoriesLocal {
# Make sure there is only one trailing slash # Make sure there is only one trailing slash
directory="${directory%/}/" directory="${directory%/}/"
# No sudo here, assuming you should have all necessary rights for local checks # No sudo here, assuming you should have all necessary rights for local checks
cmd="$FIND_CMD -L $directory/ -mindepth 1 -maxdepth 1 -type d >> $RUN_DIR/$PROGRAM.${FUNCNAME[0]}.$SCRIPT_PID.$TSTAMP 2> $RUN_DIR/$PROGRAM.${FUNCNAME[0]}.error.$SCRIPT_PID.$TSTAMP" cmd="$FIND_CMD -L $directory -mindepth 1 -maxdepth 1 -type d >> $RUN_DIR/$PROGRAM.${FUNCNAME[0]}.$SCRIPT_PID.$TSTAMP 2> $RUN_DIR/$PROGRAM.${FUNCNAME[0]}.error.$SCRIPT_PID.$TSTAMP"
Logger "Launching command [$cmd]." "DEBUG" Logger "Launching command [$cmd]." "DEBUG"
eval "$cmd" eval "$cmd"
retval=$? retval=$?
@ -2701,7 +2701,7 @@ function _ListRecursiveBackupDirectoriesRemoteSub {
for directory in "${directories[@]}"; do for directory in "${directories[@]}"; do
# Make sure there is only one trailing slash # Make sure there is only one trailing slash
directory="${directory%/}/" directory="${directory%/}/"
cmd="$REMOTE_FIND_CMD -L \"$directory\"/ -mindepth 1 -maxdepth 1 -type d" cmd="$REMOTE_FIND_CMD -L \"$directory\" -mindepth 1 -maxdepth 1 -type d"
Logger "Launching command [$cmd]." "DEBUG" Logger "Launching command [$cmd]." "DEBUG"
eval $cmd eval $cmd
retval=$? retval=$?
@ -4009,10 +4009,10 @@ function FilesBackup {
if [ "$KEEP_ABSOLUTE_PATHS" != "no" ]; then if [ "$KEEP_ABSOLUTE_PATHS" != "no" ]; then
# Fix for backup of '/' # Fix for backup of '/'
if [ "${backupTask#/}" == "/" ]; then if [ "${backupTask#/}/" == "/" ]; then
destinationDir="$FILE_STORAGE/${backupTask#/}" destinationDir="$FILE_STORAGE/"
else else
destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}") destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}/")
fi fi
else else
destinationDir="$FILE_STORAGE" destinationDir="$FILE_STORAGE"
@ -4044,10 +4044,10 @@ function FilesBackup {
if [ "$KEEP_ABSOLUTE_PATHS" != "no" ]; then if [ "$KEEP_ABSOLUTE_PATHS" != "no" ]; then
# Fix for backup of '/' # Fix for backup of '/'
if [ "${backupTask#/}" == "/" ]; then if [ "${backupTask#/}/" == "/" ]; then
destinationDir="$FILE_STORAGE/${backupTask#/}" destinationDir="$FILE_STORAGE/"
else else
destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}") destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}/")
fi fi
encryptDir="$FILE_STORAGE/${backupTask#/}" encryptDir="$FILE_STORAGE/${backupTask#/}"
else else
@ -4080,10 +4080,10 @@ function FilesBackup {
if [ "$KEEP_ABSOLUTE_PATHS" != "no" ]; then if [ "$KEEP_ABSOLUTE_PATHS" != "no" ]; then
# Fix for backup of '/' # Fix for backup of '/'
if [ "${backupTask#/}" == "/" ]; then if [ "${backupTask#/}/" == "/" ]; then
destinationDir="$FILE_STORAGE/${backupTask#/}" destinationDir="$FILE_STORAGE/"
else else
destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}") destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}/")
fi fi
else else
destinationDir="$FILE_STORAGE" destinationDir="$FILE_STORAGE"