Compare commits
No commits in common. "171cdbe676b7dbc8be86e13eb6773f86b5144347" and "8fb80564dd6ef16b39f008e356170a0922b923f3" have entirely different histories.
171cdbe676
...
8fb80564dd
18
.vscode/numbered-bookmarks.json
vendored
18
.vscode/numbered-bookmarks.json
vendored
@ -1,3 +1,19 @@
|
|||||||
{
|
{
|
||||||
"bookmarks": []
|
"bookmarks": [
|
||||||
|
{
|
||||||
|
"fsPath": "$ROOTPATH$/pilerbackup.sh",
|
||||||
|
"bookmarks": [
|
||||||
|
-1,
|
||||||
|
301,
|
||||||
|
46,
|
||||||
|
386,
|
||||||
|
-1,
|
||||||
|
-1,
|
||||||
|
-1,
|
||||||
|
-1,
|
||||||
|
-1,
|
||||||
|
637
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
@ -390,7 +390,7 @@ if ! exportDir=$( mktemp -d 2>>"$logFile" ); then
|
|||||||
exitError 111 "Could not create temporary directory for exported EML files"
|
exitError 111 "Could not create temporary directory for exported EML files"
|
||||||
fi
|
fi
|
||||||
# grant pilerUser permission to write to temporary directory
|
# grant pilerUser permission to write to temporary directory
|
||||||
if ! (chown root:${pilerUser} "$exportDir" && chmod 770 "$exportDir"); then
|
if ! chown root:${pilerUser} "$exportDir" && chmod 770 "$exportDir"; then
|
||||||
exitError 112 "Could not set permissions on temporary directory"
|
exitError 112 "Could not set permissions on temporary directory"
|
||||||
fi
|
fi
|
||||||
if ! cd "$exportDir"; then
|
if ! cd "$exportDir"; then
|
||||||
@ -552,8 +552,9 @@ borgResult="$?"
|
|||||||
|
|
||||||
## check borg exit status
|
## check borg exit status
|
||||||
if [ "$borgResult" -eq 0 ]; then
|
if [ "$borgResult" -eq 0 ]; then
|
||||||
printf "${ok}[%s] -- [SUCCESS] Borg backup completed --${norm}\n" \
|
printf "${ok}[%s] -- [SUCCESS] Borg backup completed " \
|
||||||
"$(stamp)" >> "$logFile"
|
"$(stamp)" >> "$logFile"
|
||||||
|
printf "successfully --${norm}\n" >> "$logFile"
|
||||||
elif [ "$borgResult" -eq 1 ]; then
|
elif [ "$borgResult" -eq 1 ]; then
|
||||||
printf "${warn}[%s] -- [WARNING] Borg completed with warnings. " \
|
printf "${warn}[%s] -- [WARNING] Borg completed with warnings. " \
|
||||||
"$(stamp)" >> "$logFile"
|
"$(stamp)" >> "$logFile"
|
||||||
@ -620,7 +621,8 @@ printf "${ok}[%s] -- [SUCCESS] Backup operations completed --${norm}\n" \
|
|||||||
cleanup
|
cleanup
|
||||||
|
|
||||||
# note complete success, tally warnings and exit
|
# note complete success, tally warnings and exit
|
||||||
printf "${ok}[%s] -- [SUCCESS] All processes completed --${norm}\n" \
|
printf "${ok}[%s] -- [SUCCESS] All processes completed successfully --" \
|
||||||
|
"${norm}\n" \
|
||||||
"$(stamp)" >> "$logFile"
|
"$(stamp)" >> "$logFile"
|
||||||
printf "${magenta}[%s] --- %s execution completed ---${norm}\n" \
|
printf "${magenta}[%s] --- %s execution completed ---${norm}\n" \
|
||||||
"$(stamp)" "$scriptName" >> "$logFile"
|
"$(stamp)" "$scriptName" >> "$logFile"
|
||||||
|
Loading…
Reference in New Issue
Block a user