Path working

This commit is contained in:
Erik Westrup
2022-02-09 14:58:31 +01:00
parent c8ab0b4421
commit d38616d697
2 changed files with 22 additions and 11 deletions
+11
View File
@@ -268,10 +268,21 @@ LaunchAgent is the modern service schedulerin in macOS that uses [Launchd](https
```console
$ PREFIX=/usr/local make install-launchagent
$ vim ~/Library/LaunchAgents/com.github.erikw.restic-automatic-backup.plist # Edit schedule if needed.
$ launchctl bootstrap gui/$UID ~/Library/LaunchAgents/com.github.erikw.restic-automatic-backup.plist
$ launchctl enable gui/$UID/com.github.erikw.restic-automatic-backup
$ launchctl kickstart -p gui/$UID/com.github.erikw.restic-automatic-backup
```
Debug with
```console
$ sudo launchctl debug gui/$UID/com.github.erikw.restic-automatic-backup --stdout --stderr
```
TODO how disable?
```
$ launchctl disable gui/$UID/com.github.erikw.restic-automatic-backup
$ launchctl bootout gui/$UID/com.github.erikw.restic-automatic-backup
```
## Setup Cron
If you want to run an all-classic cron job instead, do like this: