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

Merge branch 'version-2' into 'master'

localdump - beautify output

See merge request !10
parents 1997a289 71fe09ac
No related branches found
No related tags found
1 merge request!10localdump - beautify output
......@@ -67,7 +67,6 @@
# ------------------------------------------------------------
# cleanup a backup dir: remove old files and delete empty dirs
function cleanup_backup_target(){
echo
h3 "CLEANUP ${BACKUP_TARGETDIR} older $BACKUP_KEEP_DAYS days ..."
if [ -d "${BACKUP_TARGETDIR}" ]; then
echo find "${BACKUP_TARGETDIR}" -mtime +$BACKUP_KEEP_DAYS -delete -print
......@@ -137,7 +136,6 @@
# show used space and count of files and dirs
function show_info_backup_target(){
echo
h3 "INFO about backup target ${BACKUP_TARGETDIR}"
if [ -d "${BACKUP_TARGETDIR}" ]; then
......@@ -232,8 +230,7 @@
# . /usr/local/bin/inc_cronfunctions.sh
j_requireUser "root"
echo
echo IML BACKUP :: $*
h1 `date` IML BACKUP :: LOCALDUMP :: $*
echo Start `date`
echo
......@@ -295,14 +292,10 @@
# ----- start service specific script
echo "--------------------------------------------------------------------------------"
echo
echo
h2 "START SCRIPT FOR ${SERVICENAME} - $BACKUP_SCRIPT"
. $BACKUP_SCRIPT $mode
echo
echo
# ----- post jobs: cleanup
cleanup_backup_target
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment