Backing up and restoring Cloudera Migration Assistant database

Cloudera Migration Assistant has no backup tool of its own. Back up its databases, persistent volumes, and Secrets by using the backup tools of your Anywhere Cloud cluster, and restore all of them from the same point in time.

Back up these items for the Cloudera Migration Assistant engine and for each Cloudera Migration Assistant Agent engine instance:

Table 1. Items to back up
Item Engine Default size What it holds
PostgreSQL volume Cloudera Migration Assistant 12 GiB The cma-auth, cma-master, and gitea databases
Data volume Cloudera Migration Assistant 50 GiB The working files of the Cloudera Migration Assistant server
Keystore volume Cloudera Migration Assistant 1 GiB The internal keystore, which protects the stored credentials
Built-in Git server volume Cloudera Migration Assistant 10 GiB The repositories of the built-in Git server
Volume for large Cloudera Data Engineering resources Cloudera Migration Assistant The value of CMA Resource Storage Size, 50 GiB by default Large resource files, such as Spark JAR files. This volume exists only when no bucket is bound to the cde-resources purpose.
PostgreSQL volume Cloudera Migration Assistant Agent 2 GiB The cma-agent database
Data volume Cloudera Migration Assistant Agent 10 GiB The working files of the agent
Keystore volume Cloudera Migration Assistant Agent 1 GiB The internal keystore of the agent, which protects its stored connection credentials
Secrets Both N/A The passwords of the instance, including the Internal Keystore Password. See How secrets are stored.

If you bound a bucket to the cde-resources purpose, protect it with the backup policy of your object storage.

An agent on a Cloudera Base on premises cluster keeps its configuration and data on its host, in /var/lib/cma-agent/. Back up that directory with the backups of the host.

  • You are an Anywhere Cloud administrator.
  • Your Anywhere Cloud cluster has a backup tool that can back up persistent volumes and Kubernetes Secrets.
  • You have kubectl access to the namespaces of the Cloudera Migration Assistant instances. See Configuring kubectl access and Kubernetes secrets in the Anywhere Cloud documentation.

To back up Cloudera Migration Assistant:

  1. Record the Internal Keystore Password of the Cloudera Migration Assistant engine and of each agent, and store it with the backup.
    If you left the field empty when you deployed, Cloudera Migration Assistant generated the password and stored it in a Secret of the instance. See How secrets are stored.
  2. Ensure that no plan execution, scan, or Code Migrator job is running.
    Running work writes to the databases and the volumes, so a backup taken during it might not be consistent.
  3. By using the backup tool of your cluster, back up the volumes and the Secrets in the table, for the Cloudera Migration Assistant engine and for each agent, at the same time.

To restore Cloudera Migration Assistant:

  1. Restore the volumes and the Secrets of the Cloudera Migration Assistant engine and of every agent from the same backup.
  2. Ensure that the Internal Keystore Password in the engine configuration of each instance is the password that you recorded with the backup.
  3. Open the Cloudera Migration Assistant web interface.
  4. Check that your clusters, connections, and migration plans are listed.
Cloudera Migration Assistant displays the clusters, connections, plans, and executions as they were when you took the backup. Work that ran after the backup is not included. Run it again if you still need it.