Skip to navigation

Retrieve a website's backup settings

View as MarkdownOpen in Claude

Returns how one website is backed up: whether its automatic backups are on, the schedule it inherits from its global configuration, which areas are copied (filesystem and content.included) and the exclusions configured in the dashboard. The values read back under the same keys “Update a website’s backup settings” accepts.

The id is the website’s backup settings id: read it from the site_preset_backup include of “Retrieve a website” (?include=site_preset_backup, which also carries the global configuration the website uses) or from meta.updated of “Assign websites to a backup global configuration”.

A website that was never assigned a global configuration has no backup settings.

Authentication

AuthorizationBearer

Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.

Path parameters

site_preset_backupstringRequired

Query parameters

includestringOptional

Relations to add to the answer: preset (the global configuration the website uses) and last_backup (its last backup), comma separated. None by default. Any other name, including the camelCase lastBackup, answers 400.

Response

200 - Backup service / 200 - Backup service with preset and last backup (include=preset,last_backup)

dataobjectOptional
includedlist of objectsOptional
jsonapiobjectOptional

Errors

400
Bad Request Error