Databases

Create or update the native scheduled-backup configuration; each backup is also copied to backup storage (for downloads and restores) and kept there as long as locally, at most 30 days

put/databases/{databaseId}/backups

Request

  • Base URL: https://hostingsurge.com/api/v1
  • URL: https://hostingsurge.com/api/v1/databases/{databaseId}/backups
  • Auth: one of:
    • HTTP bearer
    • API key in cookie __Host-hs_session

Path parameters

databaseIdstring uuid required
Example:3f2b8a4e-5c1d-4e8f-9a7b-2c6d1e0f4a5b

Request body

frequencystring required

5-field cron expression, or hourly/daily/weekly/monthly/yearly

enabledboolean
retentionDaysinteger
retentionAmountinteger

Response

Saved

enabledboolean required
frequencystring required
retentionDaysinteger nullable required
retentionAmountinteger nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.