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

Merge branch 'version-2' into 'master'

Version 2

See merge request !9
parents 4baaf7fa 7f623e31
No related branches found
No related tags found
1 merge request!9Version 2
......@@ -68,7 +68,7 @@
# cleanup a backup dir: remove old files and delete empty dirs
function cleanup_backup_target(){
echo
h2 "CLEANUP ${BACKUP_TARGETDIR} older $BACKUP_KEEP_DAYS days ..."
h3 "CLEANUP ${BACKUP_TARGETDIR} older $BACKUP_KEEP_DAYS days ..."
if [ -d "${BACKUP_TARGETDIR}" ]; then
echo find "${BACKUP_TARGETDIR}" -mtime +$BACKUP_KEEP_DAYS -delete -print
color cmd
......@@ -138,7 +138,7 @@
function show_info_backup_target(){
echo
h2 "INFO about backup target ${BACKUP_TARGETDIR}"
h3 "INFO about backup target ${BACKUP_TARGETDIR}"
if [ -d "${BACKUP_TARGETDIR}" ]; then
echo -n "used space: "
......
......@@ -41,6 +41,7 @@
typeset -i rc=0
if [ ! -r "${DIRFILE}" -o ! -r "${STORAGEFILE}" ]; then
echo "SKIP backup of local files - one of the files is not readable (no error): ${DIRFILE} | ${STORAGEFILE}"
exit 0
fi
STORAGE_BIN=`_j_getvar ${STORAGEFILE} "bin"`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment