Limitations 🔗︎

  • The new cluster must be on the same cloud provider as the original cluster that was backed up. For example, you cannot create a cluster on AWS from the backup of a GCP cluster.

Create a new cluster from backup on the UI 🔗︎

  1. Follow the regular procedure for creating clusters, up to selecting the secret step.
  2. After selecting the secret to use, select the Restore from backup option, then select the backup to use. Restore a backup to a new cluster
  3. Complete the cluster creation process.

Create a new cluster from backup in the CLI 🔗︎

  1. Log in to Pipeline.

  2. Create a cluster descriptor JSON to use for creating the new cluster.

  3. Append the RestoreFromBackup hook to the JSON. This object should include the ID of the backup from which you want to create the new cluster.

    • If your cluster secret has the permissions to manage volume snapshots, set useClusterSecret for true.
    • If your node instance role has the permissions to manage volume snapshots, set useClusterSecret for false.
  4. Start creating the cluster. For example:

    banzai cluster create <<EOF
    {
      "name": "example",
      "location": "us-east-2",
      "cloud": "amazon",
      "secretName": "aws",
      "properties": {
        "pke": {
          .....
        }
      },
      "postHooks": {
        "RestoreFromBackup": {
          "backupId": 161,
          "useClusterSecret": true
        }
      }
    }
    EOF