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

localdump - beautify output

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