From d1f344e879f347a820994f0daf7055035281431c Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 5 Nov 2018 21:43:40 +0100 Subject: [PATCH] Fixed encryption --- dev/n_obackup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dev/n_obackup.sh b/dev/n_obackup.sh index 4357bc1..b93e897 100644 --- a/dev/n_obackup.sh +++ b/dev/n_obackup.sh @@ -1452,7 +1452,8 @@ function FilesBackup { local backupTask local backupTasks local destinationDir - local withoutCryptPath + local encryptDir + IFS=$PATH_SEPARATOR_CHAR read -r -a backupTasks <<< "$FILE_BACKUP_TASKS" @@ -1466,6 +1467,7 @@ function FilesBackup { else destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}/") fi + encryptDir="$FILE_STORAGE/${backupTask#/}" else destinationDir="$FILE_STORAGE" encryptDir="$FILE_STORAGE" @@ -1537,6 +1539,7 @@ function FilesBackup { else destinationDir=$(dirname "$FILE_STORAGE/${backupTask#/}/") fi + encryptDir="$FILE_STORAGE/${backupTask#/}" else destinationDir="$FILE_STORAGE" encryptDir="$FILE_STORAGE"