diff --git a/cron.sh b/cron.sh index 812641a..ed8d3d1 100755 --- a/cron.sh +++ b/cron.sh @@ -3,4 +3,4 @@ HERE=$(dirname "$0") # local start -sudo sh -c "nohup $HERE/main.sh -d >> " } -backup_daily() { +cron_backup_daily() { # "master"-Server startet Backup auf NAS if [ -d $BACKUP_MASTER_CHECK ]; then log $DEBUG "$DBG starting daily backup on $NAS_HOSTNAME" @@ -512,6 +512,10 @@ backup_daily() { nohup $THIS_SCRIPT -w >>$LOG_FILE 2>&1 >>>>>>>>> daily auto backup $VER for $HOST_NAME <<<<<<<<<<" do_auto_backup backup_daily diff --git a/main.sh b/main.sh index db0a28b..8c8cd23 100755 --- a/main.sh +++ b/main.sh @@ -3,6 +3,7 @@ # entrypoint for all actions # +# 2.1.17 11.05.2025 - bugfixes, sort tar archive, split daily/cron daily # 2.1.16 10.05.2025 - fix mail.sh, log results of auto-update # 2.1.15 09.05.2025 - podman auto-update # 2.1.14 09.05.2025 - Fix mail.sh, homeserver.target, cleared all docker references @@ -15,7 +16,7 @@ # 2.1.7 29.04.2025 - 1. Schritt zur Umstellung auf podman # 2.1.6 29.04.2025 - weekly backup Sa->SO -VER="2.1.16" +VER="2.1.17" HERE=$(dirname "$0") THIS_SCRIPT=$0 @@ -69,6 +70,12 @@ while :; do show_help # Display a usage synopsis. exit 0 ;; + --dx) + MAIL_LOG_FILE="${log_file_name}.auto.log" + check_root + cron_backup_daily + break + ;; -d|--daily) MAIL_LOG_FILE="${log_file_name}.auto.log" check_root