Never been to DZone Snippets before?

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

Use Launchd to run Rsnapshot daily (See related posts)

// 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>

You need to create an account or log in to post comments to this site.


Click here to browse all 4858 code snippets

Related Posts