To check your Cloud version, go to <https://your Private Cloud instance address>/build.txt in your preferred web browser. To check the version of the installation script, see <the folder containing the installation script>/templates/preload_frontend_build.json.
For version differences, see the release notes.
Each Private Cloud instance comes with the service scripts which you can use to easily create a new backup or restore all data from an existing backup and then apply it to the freshly installed instance.
This can be useful in many cases, such as:
- When you need to move the Private Cloud instance from one server machine to another
- To ensure the data safety between updates
- When you need to automate daily backups of all Cloud data
By backing up the Private Cloud instance, you preserve the configuration of your instance, keep service data and user accounts in safety, retain information about your model runs — and the models themselves.
Backup scripts work with the following Cloud service components:
(based on MinIO)
Model files — JARs and attached files
Static assets of the Private Cloud web UI
Service files (such as Java policies)
The fileserver component is backed up by creating a copy of the MinIO anylogic-cloud bucket.
By default, you can view the contents of this bucket in the cache/fileserver directory on the server machine running the fileserver Docker container.
(Cassandra database management system)
Model run results
The state of Cassandra is preserved in a snapshot. Snapshots are created using built-in Cassandra functionality.
The resulting snapshot is copied by executing a particular Docker command (depending on your version of Private Cloud).
Database records about models
Model version data
Other Cloud metadata
The database is backed up by the pgdump tool.
The resulting backup is an SQL file that is copied to the location of the backup image.
In addition, backup images also contain information about UI customization.
Each Private Cloud backup is a directory containing the following sub-directories:
- fileserver — Contains the fileserver backup
- cassandra — Contains the backup of Cassandra
- db — Contains the backup of the PostgreSQL database
For backup and restore scripts to work, the listed service components (fileserver, postgres, cassandra) should be present on the server machine where the script in question is being executed.
- In Private Cloud Lite and Private Cloud Pro, these components are executed on the same machine by default.
- In Private Cloud Enterprise, you have to make sure the components are executed on the same machine before executing the backup or restore script.
Before proceeding with any of the described scenarios, open the terminal and navigate to the folder containing the unzipped installation package of Private Cloud.
To execute backups, use the same version of the installation script you had when installing Private Cloud. To compare versions of the instance and installation script, check their version numbers:
To learn which version the instance has, go to <your instance address>/build.txt.To learn how to install Private Cloud and where to retrieve the installation package, see Installing Private Cloud.
To learn which version the installation script has, open <the folder containing the installation script>/templates/preload_frontend_build.json.
The backup tools are placed upon installation of the instance in the Private Cloud home directory, in the tools directory. This directory will be also created automatically after the update.
To create a backup of the instance
Execute the backup script:
Supply a path to the directory that will contain the future backup.
You cannot place backup files in the AnyLogic Cloud home directory or user directory.
Consider launching the script while passing the path to the backup directory as an argument, for example:
sudo tools/backup.sh /path/to/backup
Additionally, you may want to ensure compatibility with an older version of the Private Cloud backup tool. In this case, the path should be passed as the value of the backup_dir option:
sudo tools/backup.sh backup_dir=/path/to/backup
To restore an instance from a backup image in Private Cloud
Execute the restore script:
- Supply a path to the directory containing the backup image.
Consider launching the script while passing the path to the image as an argument, for example:
sudo tools/restore.sh /path/to/backup
Additionally, you may want to ensure compatibility with an older version of the Private Cloud restore tool. In this case, the path should be passed as the value of the backup_dir option:
sudo tools/restore.sh backup_dir=/path/to/backup
How can we improve this article?