Skip to main content
Volume snapshots capture the state of a volume at a specific point in time. Snapshots are stored in S3 and can be used to restore a volume to a previous state.

Create a snapshot

zwrm volumes snapshot create <volume-name>
FlagTypeDefaultDescription
--appstringfrom zwrm.tomlApplication name
--app-idstringApplication ID

Example

zwrm volumes snapshot create data --app my-app

List snapshots

zwrm volumes snapshot list <volume-name>
Shows all snapshots for a volume with their ID, status, size, and creation time.
FlagTypeDefaultDescription
--appstringfrom zwrm.tomlApplication name
--app-idstringApplication ID

Delete a snapshot

zwrm volumes snapshot delete <snapshot-id>
Deleting a snapshot is permanent and cannot be undone.

Automatic snapshots

Enable scheduled snapshots for a volume:
zwrm volumes snapshot enable <volume-name>
Disable automatic snapshots:
zwrm volumes snapshot disable <volume-name>
Both commands accept --app and --app-id flags.

Restore a volume from a snapshot

zwrm volumes restore <volume-name>
FlagTypeDefaultDescription
--appstringfrom zwrm.tomlApplication name
--app-idstringApplication ID
--snapshotstringlatestSpecific snapshot ID to restore from
The VM must be stopped before restoring a volume. Stop it with zwrm destroy first, then restore and redeploy.

Examples

Restore from the latest snapshot:
zwrm volumes restore data --app my-app
Restore from a specific snapshot:
zwrm volumes restore data --app my-app --snapshot abc12345