updated readme.

This commit is contained in:
Adam Rabjerg
2021-03-22 20:28:40 +01:00
parent f21e9f70f5
commit 0745fc4eba

View File

@@ -77,8 +77,8 @@ 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.
@@ -87,7 +87,8 @@ When backups are made is defined in the line:
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
Configure the trigger in the .timer, remember to change "Description" in both .service and .timer. Configure the trigger in the .timer, remember to change "Description" in both .service and .timer.
```systemd-analyze verify make-backup.*``` ```systemd-analyze verify make-backup.*```
Have systemd verify that the files are correct before continueing. Have systemd verify that the files are correct before continueing.
If there is any errors, FIX THOSE FIRST! If there is any errors, FIX THOSE FIRST!
@@ -98,10 +99,10 @@ Copy the files to /etc/systemd/system.
```systemctl daemon-reload``` ```systemctl daemon-reload```
Have systemd track the files you just added. Have systemd track the files you just added.
```systemctl start make-backup.service``` ```systemctl start make-backup.service```
Trigger the backup via systemd to verify that everything is working as expected. Trigger the backup via systemd to verify that everything is working as expected.
```systemctl enable make-backup.timer --now``` ```systemctl enable make-backup.timer --now```
If the .service works and makes backups as wanted you can now enable the .timer. If the .service works and makes backups as wanted you can now enable the .timer.
DONE!! DONE!!