From 9c824ac560ec6eefd6583c8174b2e808cbdf0586 Mon Sep 17 00:00:00 2001 From: framps Date: Mon, 4 Nov 2024 17:17:55 +0800 Subject: [PATCH 1/2] Removed comments in config crontab and timer default config --- installation/raspiBackupInstallUI.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/installation/raspiBackupInstallUI.sh b/installation/raspiBackupInstallUI.sh index c57e349..7265ac4 100644 --- a/installation/raspiBackupInstallUI.sh +++ b/installation/raspiBackupInstallUI.sh @@ -138,8 +138,6 @@ read -r -d '' CRON_CONTENTS <<-'EOF' # # (C) 2017-2019 framp at linux-tips-and-tricks dot de # -# Create a backup once a week on Sunday morning at 5 am (default) -# #0 5 * * 0 root /usr/local/bin/raspiBackup.sh EOF @@ -161,7 +159,6 @@ Description=Timer for raspiBackup.service to start backup [Timer] OnCalendar=Sun *-*-* 05:00:42 -# Create a backup once a week on Sunday morning at 5 am (default) Unit=raspiBackup.service [Install] From dc2cd01966e3413d919f3308dc76afdfc87d8548 Mon Sep 17 00:00:00 2001 From: framps Date: Tue, 5 Nov 2024 16:24:07 +0800 Subject: [PATCH 2/2] Upd comment --- installation/raspiBackupInstallUI.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installation/raspiBackupInstallUI.sh b/installation/raspiBackupInstallUI.sh index 7265ac4..0875be7 100644 --- a/installation/raspiBackupInstallUI.sh +++ b/installation/raspiBackupInstallUI.sh @@ -2910,7 +2910,7 @@ function config_menu() { logItem "parsed day: $CONFIG_CRON_DAY" elif isSystemdConfigInstalled; then # OnCalendar=Sun *-*-* 05:00:00 - # OnCalendar= *-*-* 05:00:00 + # OnCalendar=*-*-* 05:00:00 local l="$(grep "^OnCalendar" $SYSTEMD_TIMER_ABS_FILE | cut -f 2 -d "=")" # Sun *-*-* 05:00:00 or *-*-* 05:00:00 logItem "parsed $l" local day="$(cut -f 1 -d ' ' <<< $l)" # Sun or *-*-*