Back up workspaces
Back up DevWorkspace workspace data to an OCI-compatible registry on a recurring schedule. The backup controller requires an OCI-compliant registry, such as the Red Hat OpenShift built-in registry or Quay.io, to store backup archives as image artifacts. For details about supported registries, see Additional resources.
The backup makes a snapshot of stopped Workspace PVCs and stores them as tar.gz archives in the specified OCI registry.
Users can restore backups from the Che dashboard. For more information about restoring workspaces, see Additional resources.
|
By default, the DevWorkspace backup job is disabled. |
You can configure the backup by using the DevWorkspaceOperatorConfig resource with the following fields:
-
enable: Set totrueto enable the backup job orfalseto disable it. The default value isfalse. -
schedule: A Cron expression that defines the backup frequency. The default value is"0 1 * * *". -
backoffLimit: The value of the backup job’sspec.backoffLimit, which specifies the number of retries before marking this job failed. The default value for the backups jobs is1. -
registry.path: The base registry location for backup archives.The value for
registry.pathis the first segment of the final location. The full path is assembled dynamically by using the workspace name and the:latesttag in the following pattern:<registry.path>/<namespace>/<devworkspace-name>:latest -
registry.authSecret: (Optional) The name of the Kubernetes secret that contains credentials for the OCI registry. If you do not provide a secret, the system assumes the registry is public or uses the Red Hat OpenShift integrated registry. -
oras.extraArgs: (Optional) Additional arguments for to theorasCLI tool during push and pull operations.
For details on each configuration option, see Additional resources.