Zum Hauptinhalt springen

Create a Backup of a Project

POST/projects/{projectId}/backups/
v2
POST
backup-create-project-backup

Request

  • projectIdstring
    required

    ID of the project to create a Backup for.

Responses

application/json

Created

  • createdAtstring (date-time)
  • deletableboolean
    required
  • descriptionstring
  • expiresAtstring (date-time)
  • exportobject
    • downloadURLstring (url)
    • expiresAtstring (date-time)
    • formatstring
      required
    • phasestring (one of: Pending, Exporting, Failed, Completed, Expired)
    • sha256Checksumstring
    • withPasswordboolean
      required
  • idstring (uuid)
    required
  • parentIdstring (uuid)
  • projectIdstring (uuid)
    required
  • requestedAtstring (date-time)
    required
  • restoreobject
    • databaseRestoresarray of object
      • Array[
        • *object
          • databaseBackupDumpstring
            required
          • targetDatabaseIdstring (uuid)
            required
        ]
    • pathRestoreobject
      • clearTargetPathboolean
        required
      • determinedTargetPathstring
        required
      • sourcePathsarray of string
        required
        • Array[
          • *string
          ]
      • targetRestorePathstring
    • phasestring (one of: running, completed)
      required
  • restorePathobject
    • clearTargetPathboolean
      required
    • determinedTargetPathstring
      required
    • phasestring (one of: running, completed)
      required
    • sourcePathstring
      required
    • targetPathstring
  • statusstring
    required

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"description":"I'm a ProjectBackup","expirationTime":"1985-10-26T01:21:00.000Z"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/projects/string/backups