# Scheduling Restic Backups with a Launch Agent on MacOS
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>net.restic.backup</string>
	
	<key>ProgramArguments</key>
	<array>
		<string>/usr/bin/open</string>
		<string>-a</string>
		<string>/Users/nikola/restic/backup.app</string>
	</array>
	
	<key>StartInterval</key>
	<integer>7200</integer>
</dict>
</plist>
```
`backup.app` is an Automator app with the following contents:
`do shell script "/Users/nikola/restic/backup.sh"`
And `backup.sh` is a script that triggers `restic`. Automator is used here to make sure permissions to access iCloud, Desktop, Documents, etc. are correctly passed to Restic.