Watch a backup on macOS with launchd
Monitor a scheduled macOS backup with a BotPings check-in. Run your backup wrapper with launchd and confirm completion in the iPhone app.
macOS · 3 min · Servers and scripts
Before you start
Create a check-in. Save the protected URL file and wrapper described in the cron guide, adjusting both absolute paths for macOS.
Steps
Create the user agent
Use a LaunchAgent in ~/Library/LaunchAgents. Set Label to com.example.backup-check-in, include /bin/sh and the absolute wrapper path in ProgramArguments, and set StartCalendarInterval with Hour 3 and Minute 0.
Check and load the property list
Use the commands below with the path to your plist. Run bootstrap from the macOS account that owns the LaunchAgent.
agent="$HOME/Library/LaunchAgents/com.example.backup-check-in.plist"
plutil -lint "$agent"
launchctl bootstrap "gui/$(id -u)" "$agent"Trigger one run
Run the job once from your own GUI domain.
launchctl kickstart "gui/$(id -u)/com.example.backup-check-in"Test it
Check Last check-in after the backup completes. Make sure the script can run while the selected user is logged in.

If it doesn’t work
- The job did not load. Run plutil and check the plist path and label.
- The job runs but cannot back up. Check paths, macOS permissions and the job account.
- The Mac was off or asleep. Check its next run and decide if the deadline needs to account for unavailable hours.
Related guides
Checked with BotPings 1.0 in a local test environment, November 2026.