Readme, .timer OnCalendar

This commit is contained in:
Adam Rabjerg
2021-03-22 20:38:21 +01:00
parent 2f97785cba
commit 6a5a146d7c

View File

@@ -77,13 +77,14 @@ Todo
### etc/systemd/system/make-backup.service ### etc/systemd/system/make-backup.service
Systemd service to make backup. Systemd service to make backup.
```WorkingDirectory=``` should be the absolute path to where make_backup.sh script is located. ```WorkingDirectory=``` should be the absolute path to where ```make_backup.sh``` script is located.
```ExecStart=``` *MUST* be the absolute path to make_backup.sh ```ExecStart=``` *MUST* be the absolute path to ```make_backup.sh```
### etc/systemd/system/make-backup.timer ### etc/systemd/system/make-backup.timer
Systemd timer to trigger backup. Systemd timer to trigger backup.
When backups are made is defined in the line: When backups are made is defined in the line:
```OnCalendar=Mon-Sun *-*-* 04:00:00``` ```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. See ```man systemd.time``` for more how to configure OnCalendar events.
### Systemd service+timer install ### Systemd service+timer install