Trigger event when scheduled backup completes

Is there a way to trigger a script or event inside an Ignition project when a scheduled gateway backup completes?

I'm just looking to grab the new scheduled backup file and push it to a remote service. I could make something that scans the schedule backup directory periodically, but I was hoping there might be a nicer way.

Nothing built in to Ignition. At some point we're planning to make scheduled backups an extension point, which would allow us and third party authors to easily hook up other file storage mechanism.

One option in the short term besides the periodic file scan would be, depending on your OS, automatically mirroring/mounting a cloud service directory to appear as a local folder - exact details are going to depend on your cloud service and OS of choice.

you could just run the scheduled backup as a gwcmd call in a cron script, and hook up any add'l scripts to that?

2 Likes

I'd rather not have another file system mounted full-time. Just more overhead and possibly complicates the "write-only" access I was trying to give the Ignition instance to the file store.

I like the idea of moving the backups to an external Linux script. I was already planning on calling a shell script to do the file push since the CLI tools are already setup for remote file access. Now we would just do the gwcmd --backup as an earlier step in the same script.

Kinda obvious in hindsight.

Thanks!

2 Likes