[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tarsnap GUI on Mac stopped running scheduled job





On 18 Jul 18, at 6:26 AM, Colin Percival <cperciva@tarsnap.com> wrote:

but is there a file ~/Library/LaunchAgents/com.tarsnap.gui.plist
under your home directory?


Yes, it is there. Here’s the content:

<?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">
<!-- Tarsnap GUI launchd script for running Tarsnap scheduled Jobs every
     day at 10AM. Copy to appropriate path and load with:
     $launchctl load ~/Library/LaunchAgents/com.tarsnap.gui.plist
-->
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.tarsnap.gui</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/local/Cellar/tarsnap-gui/1.0/Tarsnap.app/Contents/MacOS/Tarsnap</string>
        <string>--jobs</string>
    </array>
    <key>StartCalendarInterval</key>
    <dict>
        <key>Hour</key>
        <integer>10</integer>
        <key>Minute</key>
        <integer>0</integer>
    </dict>
    <key>WorkingDirectory</key>
    <string>/Users/amar/Downloads/</string>
    <key>StandardOutPath</key>
    <string>/Users/amar/Library/Logs/tarsnap-gui.log</string>
    <key>StandardErrorPath</key>
    <string>/Users/amar/Library/Logs/tarsnap-gui.log</string>
</dict>
</plist>

And does `launchctl list` show anything without the "sudo" part?

Yes, it does and one of those lines is 

- 78 com.tarsnap.gui



--
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid