Persist and restore workspace data
Persist workspace data across restarts by requesting PersistentVolumes in devfiles or PVCs, and restore Cloud Development Environments from backup snapshots to recover uncommitted changes.
- Persistent storage for workspaces
OpenShift Dev Spaces workspaces and workspace data are ephemeral and are lost when the workspace stops. - Request persistent storage in a devfile
When a workspace requires its own persistent storage, request a PersistentVolume (PV) in the devfile, and OpenShift Dev Spaces automatically manages the necessary PersistentVolumeClaims. - Request persistent storage in a PVC
Request persistent storage by applying a PersistentVolumeClaim (PVC) to provision a PersistentVolume (PV) for your workspaces, so that data persists beyond workspace restarts and can be shared across workspaces. - View backups in the dashboard
View the status of your workspace backups in the OpenShift Dev Spaces dashboard. The dashboard displays backups available in the default registry set by the administrator. - Restore a workspace from a backup
Restore a workspace from a backup snapshot through the OpenShift Dev Spaces dashboard to recover uncommitted changes or recreate a workspace environment. When the restoration is complete, the dashboard opens the new workspace in a browser tab.
Related information