DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Use Launchd To Run Rsnapshot Daily

04.15.2006
| 5711 views |
  • submit to reddit
        // run rsnapshot daily at 3am

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>local.my-mac.rsnapshot-daily</string>
        <key>ProgramArguments</key>
        <array>
                <string>/opt/local/bin/rsnapshot</string>
                <string>daily</string>
        </array>
        <key>StartCalendarInterval</key>
        <dict>
                <key>Hour</key>
                <integer>3</integer>
        </dict>
</dict>
</plist>