Contact Free trial Login

Configure Backup and Restore for Anypoint Private Cloud

To preserve your data in case of system failure or problems with other operations, such as patching or performing upgrades, ensure that your system is automatically backed up. Regular backups are extremely important for disaster recovery procedures. Configure your backup to run at least once per day; hourly is recommended. Store your backup archive on external storage outside the Anypoint Platform cluster.

Anypoint Platform Private Cloud Edition (Anypoint Platform PCE) requires you to install, configure, and manage an NFS server. Ensure that you configure and perform frequent backups of this server.

Create a Backup

To create a backup, run the following command on any node in the cluster:

gravity backup /var/lib/gravity/planet/share/backup.tar.gz

This command creates an archive of the current system state in: /var/lib/gravity/planet/share/backup.tar.gz. You can pass the following optional parameters to the gravity backup command:

  • --follow

    Outputs the backup job logs to stdout.

  • --timeout

    Specifies the deadline for the backup job, for example, 30s or 5m. Default is 20m.

  • --log-file

    Outputs logs to a file.

Backup contents:

Information Included in PCE Backup

Databases

Y

Configurations

Y

Secrets

Y

Object Store

Y

Drives

N

NFS files

N

Runtimes*

N

*PCE only has INFORMATION about runtimes, such as their names and status.

Perform a System Restore

To restore a system from your backup, use the existing cluster or create a new cluster containing the same number of servers as the cluster being restored.

You cannot perform a backup between different versions of Anypoint Platform PCE. The new installation you create must use the same version of Anypoint Platform PCE as your backup.
  1. Log in to one of the nodes in your cluster.

  2. Move the compressed backup archive file to a folder on any node in the environment to be restored. You can transfer this file securely via the following command:

    scp /backup-path/to-restore.tar.gz your_username@remotehost.edu:/var/lib/gravity/planet/share
  3. Restore the cluster from the backup archive:

    sudo gravity restore /var/lib/gravity/planet/share/to-restore.tar.gz

    You can pass the following optional parameters:

    • --follow

      Outputs the backup job logs to stdout.

    • --timeout

      Specifies the deadline for the backup job (e.g.: 30s, 5m, etc). Default is 20m.

    • --log-file

      Outputs logs to a file.

  4. Wait a few minutes for the operation to complete.

  5. Manually restore the NFS files.