Gardience Documentation gardience.com →
Docs / Installation

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

#

Move it

#
  1. Install Gardience on the new server the usual way (see Install on one server or Install on AWS).
  2. On the old server, make the new one its standby:

    sudo /opt/gardience/gardience standby-setup new-server.example.com

    The 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.

  3. When you are ready to switch, stop the old server:

    sudo /opt/gardience/gardience stop
  4. On the new server, take over:

    sudo /opt/gardience/gardience promote

    It 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.

  5. 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:

  1. On the old server, take a backup: sudo /opt/gardience/gardience backup.
  2. Copy the backup files to the new server.
  3. Restore it there (see Backup and restore).
  4. 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.

#
Gardience by Bouziden Management LLC.