From 0745fc4ebac25f9cce56e14548613bfd9f17f573 Mon Sep 17 00:00:00 2001 From: Adam Rabjerg Date: Mon, 22 Mar 2021 20:28:40 +0100 Subject: [PATCH] updated readme. --- README.MD | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.MD b/README.MD index 0111cc5..6ddec2c 100644 --- a/README.MD +++ b/README.MD @@ -77,8 +77,8 @@ 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. @@ -87,7 +87,8 @@ When backups are made is defined in the line: See ```man systemd.time``` for more how to configure OnCalendar events. ### 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.*``` Have systemd verify that the files are correct before continueing. If there is any errors, FIX THOSE FIRST! @@ -98,10 +99,10 @@ Copy the files to /etc/systemd/system. ```systemctl daemon-reload``` 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. -```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. DONE!!