Restore gateway backup with command line tool gwcmd.sh

Hi,
We used the command line tool to restore a gateway backup with the following options:
/usr/local/bin/ignition/gwcmd.sh --restore initial-backup.gwbk -y
We noticed the following warning (we did the command before we started the gateway):
"Restoration success message was not received from the Gateway. Will attempt to place a __restore.gwbk file in the data folder."
After that the backup was copied to the ignition data folder with the following name:
__restore_1746086616106.gwbk

If we add the "-m" option to the restore command the warning is no longer appearing, but it will anyway copy the backup to the new location with the name above.

In the backup there is one project with only a minimal project.json-file. When we restore this file the project is not touched and is still in the gateway, which is in our case a good behaviour.
I have following questions to this process:

  • Is it the same if we just copy the backup-file with the timestamp-name to the ignition data folder (it was working in our case, but we are not shure if that is the correct way) beofre we start the gateway?
  • Why is the project folder not cleared when we restore the backup with the command line tool?

Thanks

When you get that error, the restore won't complete until you restart the gateway.

2 Likes

As long as the timestamp within the filename is within 20 minutes of when that restart happens.
And in case you try multiple times, we'll pick the most recent timestamp.

1 Like