Roll Back to Snapshot
Last updated Changelog
http
POST /crates/{handle}/snapshots/{name}/rollback
Puts the snapshot’s target (every folder, or one folder) back as it was when the snapshot was taken. Changes since then are lost, and newer snapshots of the same target are deleted. The connections of every login using it are dropped first. To get back only some files, copy them out of .zfs/snapshot/<name>/ instead.
Response
json
{ "message": "Rolled back. Newer snapshots of the same target were deleted." }
Errors
Besides the errors any endpoint can return:
| Status | Code | When |
|---|---|---|
| 400 | operation_rejected |
The server behind the API (mail, database, storage) or the registrar refused the operation. error says why. |
| 403 | not_in_plan |
This plan doesn’t include snapshots. |
| 403 | scope_denied |
This API key does not have Crates write access for this crate. |
| 403 | service_inactive |
This crate is not active. |
| 404 | not_found |
Crate not found. |
| 502 | upstream_unavailable |
This crate has no storage node. |