Back up an Edge site
Back up an Edge site to prevent losing site data, such as connection parameters, if a site is reinstalled or accidentally deleted. With a backup, you can reinstall your Edge site and restore the previous settings.
The backup includes:
- The public and private keys the site uses to encrypt and send secrets.
- The secrets used in connections, capabilities, and vaults.
For privacy reasons, Edge site backups remain in your personal environment and are not sent to the cloud.
Prerequisites
- You have a global role that has the Manage Edge sites global permission.
- You have a global role with the Install Edge sites and the User Administration global permission, for example Edge site administrator.
- You have installed an Edge site.
On the server that runs your Edge site, run the following command. By default, the backup is generated in the current working directory. If you want to specify where the backup is generated, add the --path <backup> flag to the command: .
sudo ./edgecli recovery backup
Edge creates a backup of your Edge site in the selected folder of the command.
|
What is your Edge site installation method?
|
On the server from which you manage your managed Kubernetes cluster, run the following command:
./edgecli recovery backup --path <backup_path>
Edge creates a backup of your Edge site in the defined folder of the last command.
kubectl get -n <my-namespace> secrets -l edge.collibra.com/backup -o yaml > <PATH_OF_BACKUP_FILE>| Property | Description |
|---|---|
<my-namespace> | The Edge site namespace.
|
<PATH_OF_BACKUP_FILE> | The name of the output yaml file containing your Edge site backup. For example, myBackupFile.yaml. |
Edge creates a backup of your Edge site in the defined folder of the last command.
Reinstall your Edge site using the backup you created.