Run a script (for health check ping) after a cloud sync task completes

Martin Aspeli

Dabbler
Joined
Jan 13, 2016
Messages
29
Hi,

I am migrating a custom rolled rclone backup solution with the now-built-in FreeNAS "cloud sync" task (which uses rclone under the hood), to push backups to Backblaze B2.

I'd like to ping a healthchecks.io URL when the backup completes to get alerts in case there is a problem with FreeNAS itself or my network or Backblaze. That was easily done with curl in an old cron job, but I can't find an easy way to do it using FreeNAS. Is there any ability to trigger a script or command when the cloud sync is done?

I can see that when the task is running, it generates an rclone config in /tmp and runs rclone by itself. What actually manages the cloud sync tasks?
 

Martin Aspeli

Dabbler
Joined
Jan 13, 2016
Messages
29
No, but from looking through source code and tickets I think possibly 11.3 will have a feature for this.
 
Top