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

# Create Backup

> Starts a backup of the server now. It takes one of the server's slots; when
all are in use, delete a backup first or buy the paid slots. Follow it with
`GET /servers/{server}/backups/{backup}`.




## OpenAPI

````yaml post /servers/{server}/backups
openapi: 3.1.0
info:
  title: APIFiddle Sample Definition
  version: 0.0.0
  description: Example workspace
servers:
  - url: https://rdp.sh/api/v1
    description: Default production endpoint.
security: []
paths:
  /servers/{server}/backups:
    post:
      summary: Create a backup
      description: >
        Starts a backup of the server now. It takes one of the server's slots;
        when

        all are in use, delete a backup first or buy the paid slots. Follow it
        with

        `GET /servers/{server}/backups/{backup}`.
      operationId: createServerBackup
      parameters:
        - $ref: '#/components/parameters/server'
      responses:
        '201':
          content:
            application/json:
              schema:
                type: object
                title: CreateServerBackupOk
                properties:
                  status:
                    type: boolean
                    examples:
                      - true
                  message:
                    type: string
                    examples:
                      - Backup creation has been started.
                  backup:
                    $ref: '#/components/schemas/backup'
          description: The backup was queued.
        '403':
          description: User does not own the server.
        '404':
          description: Server not found.
        '409':
          content:
            application/json:
              schema:
                type: object
                title: CreateServerBackupConflict
                properties:
                  status:
                    type: boolean
                    examples:
                      - false
                  error:
                    type: string
                    examples:
                      - >-
                        The backup slot of this server is in use. Delete it
                        first, or upgrade to 5 slots to keep more.
          description: >
            Backups are not enabled, every slot is in use, another backup or a
            restore

            is running, or the server is suspended or busy.
      security:
        - Authorization: []
components:
  parameters:
    server:
      in: path
      name: server
      schema:
        type: string
      required: true
  schemas:
    backup:
      type: object
      required:
        - id
        - type
        - status
      properties:
        id:
          type: integer
          examples:
            - 812
        type:
          type: string
          enum:
            - manual
            - scheduled
        status:
          type: string
          enum:
            - pending
            - running
            - completed
            - failed
          examples:
            - completed
        progress:
          type: integer
          minimum: 0
          maximum: 100
          examples:
            - 100
        size_bytes:
          type:
            - integer
            - 'null'
          examples:
            - 4294967296
        error:
          type:
            - string
            - 'null'
          description: Why the backup failed, once it has.
        created_at:
          type: string
          examples:
            - '2026-10-22T03:00:04+00:00'
        started_at:
          type:
            - string
            - 'null'
        finished_at:
          type:
            - string
            - 'null'
      description: A backup of a server.
  securitySchemes:
    Authorization:
      in: header
      name: Authorization
      type: apiKey
      description: |
        Your API key as it is, without `Bearer`. API access is off for new
        accounts: until it is turned on under Settings > API, every request
        answers `403` with `API access is turned off for this account. Turn it
        on under Settings > API.` If the account lists allowed IPs, a request
        from any other address answers `403` with `This API key is not allowed
        from <address>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.