Easiest method of mirroring a gateway on another server

I am trying to take a gateway hosted on server 1 and mirror it onto another gateway on server 2. We are basically doing this to have dev/test/prod environments.

What would be the best way of this? Would it be sufficient to backup server 1's gateway and restore it on server 2's? Are there things I would want to be careful of?

We are at the beginning stages on the gateway so there aren't a ton of specific things in there but there are some outgoing/incoming connections, SSL certificate installed, other small things like that.

Using a gateway backup is the most faithful way to do this, and provides an environment with the highest likelihood of success when deploying new work from dev to production.

However, you really need to isolate the dev gateway so it cannot communicate with production resources and devices.

The technique most useful with my clients is to use no IP addresses anywhere in the production gateway, just DNS names of the form something.company.local. Then place an /etc/hosts file in each server with the IP addresses appropriate for prod/dev/test. Gateway backups don't include a server's /etc/hosts file, so no chance of clashes.

3 Likes