runtime_volumes_backup
Crash-consistent backups of a volume, kept off its host. create(volumeId, name?, retentionDays?): Back it up now, kept retentionDays (the volume's retention, 7 unless set); waits up to a minute. Restore with runtime_volumes action create and fromBackup. list(volumeId?, cursor?, limit?, state?): Your backups, newest first, each as get gives it; volumeId gives one volume's. Pass nextCursor back as cursor. get(id): Its state, size, stored bytes and expiry. policy(volumeId, daily?, retentionDays?, schedule?, keep?): Turn automatic backups on or off, keep daily ones retentionDays, or back up on a schedule with keep counts: schedule { "everyMinutes": 60 } or { "cron": "0 */6 * * *" } (UTC), keep { "hourly": 24, "daily": 7, "weekly": 4 }. schedule null goes back to daily. delete(id): Delete it and its copy off the host.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| keep | No | Which backups made on the schedule are kept: any one a count keeps is kept, and the newest ready backup always is. Counts not given are 0. While the account has no credit, each is also kept at most seven days. | |
| name | No | Your own handle for the resource. Letters, digits, dot, dash, underscore. | |
| daily | No | ||
| limit | No | Page size, 1 to 100. | |
| state | No | ||
| action | Yes | ||
| cursor | No | ||
| schedule | No | When backups are made, instead of daily: everyMinutes or cron. Null takes it off: the volume goes back to daily backups kept retentionDays. | |
| volumeId | No | ||
| retentionDays | No | Days to keep it, 1 to 365; the volume's backup retention (7 unless set) when omitted. | |
| idempotencyKey | No | Optional: left out, one is made and returned as idempotencyKey. Send it back only to retry this exact call after a temporary error. |