From f7f69a0142f0ff6c37ef9c37ccf0bf571f5e9cba Mon Sep 17 00:00:00 2001 From: Erik Westrup Date: Wed, 9 Feb 2022 13:32:19 +0100 Subject: [PATCH] instructions --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f90d9bc..9b65bbd 100644 --- a/README.md +++ b/README.md @@ -262,12 +262,17 @@ straightforward (it needs to run with sudo to read environment). Just run: | `resticw mount /mnt/restic` | Mount your remote repository | ## Setup macOS LaunchAgent +LaunchAgent is the modern service schedulerin in macOS that uses [Launchd](https://www.launchd.info/). +[Launchd](https://www.launchd.info/) is the modern built-in service scheduler in macOS. It has support for running services as root (Daemon) or as a normal user (Agent). Here we we set up an Lauch Agent to be run as your normal user for starting regular backups. ```console -$ sudo PREFIX=/usr/local make install-launchagent -$ launchctl load -w /Library/LaunchAgents/com.github.erikw.restic-automatic-backup.plist +$ PREFIX=/usr/local make install-launchagent +$ vim ~/Library/LaunchAgents/com.github.erikw.restic-automatic-backup.plist # Edit schedule if needed. +$ launchctl load -w ~/Library/LaunchAgents/com.github.erikw.restic-automatic-backup.plist +$ launchctl kickstart gui/501/com.github.erikw.restic-automatic-backup ``` + ## Setup Cron If you want to run an all-classic cron job instead, do like this: