Move gateway events between gateways using file structure

I’m trying to move the gateway event scripts from a project in our development gateway to our production gateway. If possible I’d like to use the ignition folder structure to do so.

Do gateway event scripts show up in the folder structure in a textual way? I’ve looked around a little and the only thing that looks right is “projects\ProjectName\ignition\event-scripts”, but this folder contains data.bin, a decidedly not textual file.

If this is the storage for the gateway event scripts, can I replace the production instance of the event-scripts folder with the development folder (understanding that it would overwrite any production gateway events that weren’t also in the development instance)?

These are the gateway scripts I’m hoping to move from one gateway to another.

You are in the right spot; that event-scripts folder is what contains all the Gateway Event Scripts. If you were to copy that entire folder and paste it into another gateway (overwriting any existing folder and data.bin) then it will replace all the Gateway Event Scripts like you would expect. I’d suggest making a copy of the event-scripts folder from the production gateway before replacing it though just to be extra careful.

One thing to keep in mind is that if your gateway is versioned 8.1+, changes directly to the file system like this will take a couple minutes to update on designer instances. By default, a change directly to the file system will take 5 minutes to show on a designer.

1 Like