From 6a5a146d7cea13a17b3bc3168bcab627e2e213fb Mon Sep 17 00:00:00 2001 From: Adam Rabjerg Date: Mon, 22 Mar 2021 20:38:21 +0100 Subject: [PATCH] Readme, .timer OnCalendar --- README.MD | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.MD b/README.MD index cb68b07..d1cc943 100644 --- a/README.MD +++ b/README.MD @@ -77,13 +77,14 @@ Todo ### etc/systemd/system/make-backup.service Systemd service to make backup. -```WorkingDirectory=``` should be the absolute path to where make_backup.sh script is located. -```ExecStart=``` *MUST* be the absolute path to make_backup.sh +```WorkingDirectory=``` should be the absolute path to where ```make_backup.sh``` script is located. +```ExecStart=``` *MUST* be the absolute path to ```make_backup.sh``` ### etc/systemd/system/make-backup.timer Systemd timer to trigger backup. When backups are made is defined in the line: ```OnCalendar=Mon-Sun *-*-* 04:00:00``` +This currently does a backup at 04:00 every day (Monday to Sunday), it could also be expressed by ```OnCalendar=daily``` but this would always trigger at ```00:00:00``` See ```man systemd.time``` for more how to configure OnCalendar events. ### Systemd service+timer install