From 3632fd3972f96de4a60ecddaed1a03f1ebf86c59 Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 30 Jul 2018 16:38:59 +0200 Subject: [PATCH] Multiple path fixes --- dev/n_obackup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/n_obackup.sh b/dev/n_obackup.sh index 20082a5..9bcbda7 100755 --- a/dev/n_obackup.sh +++ b/dev/n_obackup.sh @@ -7,7 +7,7 @@ PROGRAM="obackup" AUTHOR="(C) 2013-2017 by Orsiris de Jong" CONTACT="http://www.netpower.fr/obackup - ozy@netpower.fr" PROGRAM_VERSION=2.1-beta5 -PROGRAM_BUILD=2018083002 +PROGRAM_BUILD=2018083003 IS_STABLE=no #### Execution order #__WITH_PARANOIA_DEBUG @@ -1463,7 +1463,7 @@ function FilesBackup { if [ "$KEEP_ABSOLUTE_PATHS" != "no" ]; then # Fix for backup of '/' if [ "${backupTask#/}/" == "/" ]; then - destinationDir="$FILE_STORAGE/${backupTask#/}/" + destinationDir="$FILE_STORAGE/" else destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}/") fi @@ -1498,7 +1498,7 @@ function FilesBackup { if [ "$KEEP_ABSOLUTE_PATHS" != "no" ]; then # Fix for backup of '/' if [ "${backupTask#/}/" == "/" ]; then - destinationDir="$FILE_STORAGE/${backupTask#/}/" + destinationDir="$FILE_STORAGE/" else destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}/") fi @@ -1534,7 +1534,7 @@ function FilesBackup { if [ "$KEEP_ABSOLUTE_PATHS" != "no" ]; then # Fix for backup of '/' if [ "${backupTask#/}/" == "/" ]; then - destinationDir="$FILE_STORAGE/${backupTask#/}/" + destinationDir="$FILE_STORAGE/" else destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}/") fi