Move Gardience to a new server or the cloud
Moving Gardience, for example from a server rack in your building to AWS GovCloud, does not touch the machines it manages. You set up the new server as a standby, let it copy everything, and then switch over. The console is back about a minute after the switch, and every agent moves to the new server on its own.
Everything comes with it: machines and their keys, groups, schedules, approvals, the audit log, compliance results, CMMC proof files, and settings.
Before you start
#- The new server runs the same Gardience release as the old one. Upgrade the old one first if it is behind (see Upgrade).
- The two servers can reach each other over HTTPS and SSH, and your machines can reach the new server on the agent ports (4505 and 4506). Moving from your own building to AWS usually means a site-to-site VPN or AWS Direct Connect first. See Install on AWS for the security group.
- Give the new server the name or address your machines will use to reach it.
Move it
#- Install Gardience on the new server the usual way (see Install on one server or Install on AWS).
On the old server, make the new one its standby:
sudo /opt/gardience/gardience standby-setup new-server.example.comThe first time, it prints one line to run on the new server. Run it there, then press Enter on the old server. It copies all the data and keys, keeps the copy current every 15 minutes, and gives every machine the new server's address. Each machine restarts its agent once; a machine that is off gets the address when it next checks in.
When you are ready to switch, stop the old server:
sudo /opt/gardience/gardience stopOn the new server, take over:
sudo /opt/gardience/gardience promoteIt refuses to go on while the old server still answers as the primary, so you can never end up with two. The console is back in about a minute, and the agents reconnect to it on their own with their existing keys.
- Sign in to the new console and check Machines: every machine should be there and online. Review Held work and Approvals before releasing anything.
When everything looks right, point the DNS name people use for the console at the new server, and turn off or remove the old one (see Uninstall).
If the two servers cannot reach each other
#Use a backup instead. It takes longer and needs one change on the machines' side, but it works between any two networks:
- On the old server, take a backup:
sudo /opt/gardience/gardience backup. - Copy the backup files to the new server.
- Restore it there (see Backup and restore).
- Point the DNS name or address your machines use for Gardience at the new server. Agents reconnect within a few minutes with their existing keys.
If your machines were set up with the old server's IP address rather than a name, step 4 needs the new address given to each machine. Using a DNS name from the start avoids this, and the standby method above handles it for you.