The recommended strategy for backing up LGTM Enterprise is to snapshot the cluster nodes on which LGTM control pool resources are running.
To back up your system, we recommend that you regularly take a snapshot of the virtual machine(s), or file system(s), on which LGTM is installed. Snapshots must include the:
- File store:
There is no need to back up
/var/lib/lgtm/rabbitmq, indeed restoring the queue from a back up may cause problems.
When the file store and database are colocated, snapshots can be taken while the system is running. If they run on separate machines, or you want to use an alternative back up method, you should take down LGTM Enterprise (using the
lgtm-down command) before backing up. This ensures that the two back ups are consistent.
Contact Semmle Support to discuss options for backing up LGTM Enterprise.
If you're using the recommended backup strategy:
lgtm-downto bring down LGTM Enterprise.
- Replace the control pool virtual machine(s), or file system(s), with the most recent snapshot.
lgtm-upto start LGTM Enterprise again.
You will lose all changes made since the snapshot was taken.