Compare commits

...

7 Commits

3 changed files with 5 additions and 4 deletions

View File

@@ -139,6 +139,8 @@ KEEP_INFO="";
# override standard keep for tagged backups
if [ ! -z "${ONE_TIME_TAG}" ]; then
BACKUP_SET="{now:%Y-%m-%dT%H:%M:%S}";
# set empty to avoid problems
KEEP_OPTIONS=("");
else
# build options and info string,
# also flag BACKUP_SET check if hourly is set
@@ -182,7 +184,7 @@ else
fi;
fi;
# abort if KEEP_OPTIONS is empty
if [ -z "${KEEP_OPTIONS}" ]; then
if [ "${#KEEP_OPTIONS[@]}" -eq "0" ]; then
echo "[! $(date +'%F %T')] It seems no KEEP_* entries where set in a valid format.";
exit 1;
fi;
@@ -197,7 +199,6 @@ else
fi;
fi;
# for folders list split set to "#" and keep the old setting as is
_IFS=${IFS};
IFS="#";

View File

@@ -3,7 +3,7 @@
# unset borg settings
unset BORG_BASE_DIR BORG_UNKNOWN_UNENCRYPTED_REPO_ACCESS_IS_OK BORG_RELOCATED_REPO_ACCESS_IS_OK
# error abort without duration and error notice
if [ $1 == 1 ]; then
if [ $# -ge 1 ] && [ "$1" = "1" ]; then
echo "=== [ERROR: $(date +'%F %T')] ==[${MODULE}]====================================>";
else
DURATION=$[ $(date +'%s')-$START ];

View File

@@ -19,7 +19,7 @@ function version {
}
# version for all general files
VERSION="4.1.2";
VERSION="4.2.4";
# borg version and borg comamnd
BORG_VERSION="";