From 631e796812bdd9830fd2fb2f5c05d8323e67b50c Mon Sep 17 00:00:00 2001 From: KamiCreed <9517086+KamiCreed@users.noreply.github.com> Date: Wed, 25 Mar 2020 04:25:45 -0700 Subject: Add automated backup systemd scripts --- Readme.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Readme.md') diff --git a/Readme.md b/Readme.md index b794932..757e394 100644 --- a/Readme.md +++ b/Readme.md @@ -45,6 +45,17 @@ Place `minecraft.service` in `/etc/systemd/system/` and run `systemctl start minecraft` to start once or `systemctl enable minecraft` to enable autostarting. +To backup automatically, place or symlink `mc-backup.service` and +`mc-backup.timer` in `/etc/systemd/system/`. Run the following: + +``` +sudo systemctl enable mc-backup.timer +sudo sytemctl start mc-backup.timer +``` + +This wil start the enable the timer upon startup and start the timer +to run the backup after every interval specified in mc-backup.timer. + ## Disclaimer The scripts are provided as-is at no warranty. -- cgit v1.2.3