split daily/cron daily
This commit is contained in:
1 parent
8eccb0ed59
commit
f96447d0e7
3 files changed
+14
-3
No files matched your search
@@ -3,4 +3,4 @@
|
||||
HERE=$(dirname "$0")
|
||||
|
||||
# local start
|
||||
sudo sh -c "nohup $HERE/main.sh -d </dev/null &"
|
||||
sudo sh -c "nohup $HERE/main.sh --dx </dev/null &"
|
||||
+5
-1
@@ -495,7 +495,7 @@ set_log_info() {
|
||||
mail_log $INFO ">>> "
|
||||
}
|
||||
|
||||
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 </dev/null &
|
||||
fi
|
||||
|
||||
backup_daily
|
||||
}
|
||||
|
||||
backup_daily() {
|
||||
mail_log $INFO ">>>>>>>>>> daily auto backup $VER for $HOST_NAME <<<<<<<<<<"
|
||||
|
||||
do_auto_backup backup_daily
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user