Skip to content
Snippets Groups Projects
Commit cb793457 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

add LOCALDUMP_LOADED

parent 312fbe37
No related branches found
No related tags found
1 merge request!43Update localdump to classlike functions
......@@ -43,13 +43,15 @@
exit 1
fi
BACKUP_BASEDIR=
BACKUP_PLUGINDIR=
LOCALDUMP_LOADED=1
# Cleanup local dumps older N days
typeset -i BACKUP_KEEP_DAYS=0
BACKUP_BASEDIR=
BACKUP_PLUGINDIR=
BACKUP_DATE=
# Cleanup local dumps older N days
typeset -i BACKUP_KEEP_DAYS=0
BACKUP_DATE=
# ----------------------------------------------------------------------
# FUNCTIONS 4 DB-WRAPPER
......
......@@ -14,7 +14,7 @@
# 2022-02-18 ah v2.1 WIP: added counters
# ================================================================================
if [ -z "$BACKUP_TARGETDIR" ]; then
if [ -z "$LOCALDUMP_LOADED" ]; then
echo "ERROR: you cannot start $(basename $0) directly. Start localdump.sh instead."
rc+=1
exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment