> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudblast.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Backup

> Creates a new backup of the server. The server must not be in a conflicting state (installing, restoring, etc.).



## OpenAPI

````yaml POST /servers/{server}/backups
openapi: 3.0.3
info:
  title: CloudBlast API
  description: >-
    The CloudBlast V2 API provides a modern RESTful interface for managing your
    cloud infrastructure programmatically. All responses follow a consistent `{
    "data": ... }` or `{ "error": ... }` format.
  version: 2.0.0
servers:
  - url: https://console.cloudblast.io/api/v2
    description: Production
security:
  - bearerAuth: []
paths:
  /servers/{server}/backups:
    post:
      tags:
        - Backups
      summary: Create a backup
      description: >-
        Creates a new backup of the server. The server must not be in a
        conflicting state (installing, restoring, etc.).
      operationId: createBackup
      parameters:
        - $ref: '#/components/parameters/ServerIdentifier'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateBackupRequest'
      responses:
        '201':
          description: Backup created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Backup'
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          description: Backup rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    ServerIdentifier:
      name: server
      in: path
      required: true
      schema:
        type: string
      description: >-
        Server identifier — any of: numeric `id`, `uuid_short` (8 chars), or
        full `uuid` (36 chars).
      example: a1b2c3d4
  schemas:
    CreateBackupRequest:
      type: object
      required:
        - name
      properties:
        name:
          type: string
          maxLength: 40
          description: Backup name
          example: Before upgrade
        mode:
          type: string
          enum:
            - snapshot
            - suspend
            - kill
          nullable: true
          description: Backup mode. Defaults to `snapshot`.
          example: snapshot
        compression_type:
          type: string
          enum:
            - none
            - lzo
            - gzip
            - zstd
          nullable: true
          description: Compression type. Defaults to `zstd`.
          example: zstd
    Backup:
      type: object
      properties:
        uuid:
          type: string
          format: uuid
          example: f47ac10b-58cc-4372-a567-0e02b2c3d479
        name:
          type: string
          example: Daily backup
        is_successful:
          type: boolean
          example: true
        is_locked:
          type: boolean
          description: Locked backups cannot be deleted
          example: false
        size:
          type: integer
          description: Backup size in bytes
          example: 2147483648
        completed_at:
          type: string
          format: date-time
          nullable: true
          example: '2026-01-15T10:35:00+00:00'
        created_at:
          type: string
          format: date-time
          example: '2026-01-15T10:30:00+00:00'
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable error code
            message:
              type: string
              description: Human-readable error message
          required:
            - code
            - message
  responses:
    Unauthenticated:
      description: Authentication failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UNAUTHENTICATED
              message: >-
                Missing or invalid Authorization header. Use: Authorization:
                Bearer <token>
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: NOT_FOUND
              message: Server not found.
    Conflict:
      description: Server is in a conflicting state
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: SERVER_STATUS_CONFLICT
              message: >-
                This server is currently installing and cannot perform this
                action.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API token from your CloudBlast account settings. Pass as `Authorization:
        Bearer <token>`.

````