From f12aa53e54fc8d73b64ef3f45ae7ca3bb31f52e8 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 25 Jul 2019 12:46:31 -0600 Subject: [PATCH] move export user notifications --- pilerbackup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pilerbackup.sh b/pilerbackup.sh index 73903f6..f657072 100644 --- a/pilerbackup.sh +++ b/pilerbackup.sh @@ -385,9 +385,7 @@ printf "${cyan}[%s] -- [INFO] ${yellow}%s${cyan} imported --${norm}\n" \ ## create tmp directory and change to it for export operations -printf "${cyan}[%s] -- [INFO] Exporting EML files from piler --${norm}\n" \ - "$(stamp)" >> "$logFile" -# create temporary directory to dump files before borg backup +# create temporary directory to dump exported email from piler if ! exportDir=$( mktemp -d 2>>"$logFile" ); then exitError 111 "Could not create temporary directory for exported EML files" fi @@ -403,6 +401,8 @@ printf "${cyan}[%s] -- [INFO] EML files will be temporarily stored in:" \ printf "\n${yellow}%s/${cyan} --${norm}\n" "$exportDir" >> "$logFile" ## export EML from piler +printf "${cyan}[%s] -- [INFO] Exporting EML files from piler --${norm}\n" \ + "$(stamp)" >> "$logFile" if [ "$exportAll" -eq 1 ]; then if ! pilerexport -A 2>>"$logFile"; then exitError 115 "There was a problem while exporting EML from piler"