Skip to content

Instantly share code, notes, and snippets.

@yosida95
Last active May 22, 2020 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yosida95/4800c63cfc751e3416aa01ea8cdf9efe to your computer and use it in GitHub Desktop.
Save yosida95/4800c63cfc751e3416aa01ea8cdf9efe to your computer and use it in GitHub Desktop.
Take macOS backups at every 4:00 a.m. using Duplicity
<?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>com.yosida95.duplicity-backup</string>
<key>ProgramArguments</key>
<array>
<string>/Users/yosida95/.local/bin/duplicity-backup.sh</string>
</array>
<key>EnvironmentVariables</key>
<dict>
<key>HOME</key>
<string>/Users/yosida95</string>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin</string>
</dict>
<key>RunAtLoad</key>
<false/>
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Hour</key>
<integer>4</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
</array>
<key>StandardOutPath</key>
<string>/Users/yosida95/.local/log/duplicity-backup.log</string>
<key>StandardErrorPath</key>
<string>/Users/yosida95/.local/log/duplicity-backup.log</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment