Nav

To Backup and Restore Your System

To Create a Backup

To preserve your data in case of system failure, you must ensure that you system is automatically backed up. You should configure your backup to run at least once per day, although MuleSoft recommends that you back up your system hourly.

Your backup archive must be stored on external storage outside the Anypoint cluster.

You can trigger backups from any of the nodes of your installation.

To create a backup, you must 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.

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

  1. Log in to one of the nodes in your cluster.

  2. Move the compressed backup archive file to a folder in any of the nodes of the to-restore environment. 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:

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

This will take a few minutes.