API reference
backups.media.set
Turn media backup on or off
PUT/api/v1/sites/{siteId}/backups/media
Details
Choose whether a Site's restore points also copy its images and files. On: WoFlare sets up one small backup helper (a Worker) and one locked backup bucket in the Site's Cloudflare account, shared by every Site there with media backup on, binds this Site's media to it and takes a first restore point with media; the copies use the account's own R2 storage. Off: new restore points hold the database only; copies already made stay until their restore points expire. Returns the Job that does it, or none when nothing changes. Audited.
Input
| Field | Type | Notes |
|---|---|---|
siteIdrequired | string | 1 to 64 characters |
onrequired | boolean |
Output
| Field | Type | Notes |
|---|---|---|
onrequired | boolean | |
jobIdrequired | string or null |