Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf0364a0e7 |
@@ -7,14 +7,14 @@ fi;
|
|||||||
|
|
||||||
# unset borg settings
|
# unset borg settings
|
||||||
unset BORG_BASE_DIR BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK BORG_RELOCATED_REPO_ACCESS_IS_OK
|
unset BORG_BASE_DIR BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK BORG_RELOCATED_REPO_ACCESS_IS_OK
|
||||||
|
# delete lock file if it exists
|
||||||
|
if [ -f "${BASE_FOLDER}${BACKUP_LOCK_FILE}" ]; then
|
||||||
|
rm "${BASE_FOLDER}${BACKUP_LOCK_FILE}";
|
||||||
|
fi;
|
||||||
# error abort without duration and error notice
|
# error abort without duration and error notice
|
||||||
if [ $# -ge 1 ] && [ "$1" = "1" ]; then
|
if [ $# -ge 1 ] && [ "$1" = "1" ]; then
|
||||||
printf "${PRINTF_MASTER_BLOCK}" "ERROR" "$(date +'%F %T')" "${MODULE}";
|
printf "${PRINTF_MASTER_BLOCK}" "ERROR" "$(date +'%F %T')" "${MODULE}";
|
||||||
else
|
else
|
||||||
# delete lock file
|
|
||||||
if [ -f "${BASE_FOLDER}${BACKUP_LOCK_FILE}" ]; then
|
|
||||||
rm "${BASE_FOLDER}${BACKUP_LOCK_FILE}";
|
|
||||||
fi;
|
|
||||||
# running time calculation
|
# running time calculation
|
||||||
DURATION=$[ $(date +'%s')-$START ];
|
DURATION=$[ $(date +'%s')-$START ];
|
||||||
echo "=== [Run time: $(convert_time ${DURATION})]";
|
echo "=== [Run time: $(convert_time ${DURATION})]";
|
||||||
|
|||||||
Reference in New Issue
Block a user