Turn daily storage backups on or off
set_storage_backup_schedule
Turns the automatic daily storage backup of a site on or off, the same as the Daily backups switch in Storage configuration.
It only controls the archive the platform takes each night. With it off, the nightly run skips the site and takes no new automatic storage backup until it is turned back on. Manual backups with create_storage_backup still work either way, and every archive the site already holds stays, still listed and still thinned as it ages, so turning it off deletes nothing.
Daily storage backups are on for every site until someone turns them off, and they only ever run for a workspace on a paid plan, so turning them on for a free workspace changes nothing until the plan is paid. Any member of the workspace can change the setting, and the response carries enabled with the setting as it now stands.
The tool tells the client to change it only when you ask, and to say plainly that with it off no new daily archive of your files is taken. See Turn daily storage backups off.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site whose daily storage backup should be turned on or off. |
enabled |
boolean | Yes | True to take the automatic daily storage backup, false to stop taking it. |