younifyd
Menu

Create a backup

Create a backup

POST/v1/backups/{backend}

Use it in a workflow

  1. Add a step and choose the Weaviate connector.
  2. Pick the Create a backup action (under backups).
  3. Fill in the fields below, then reference the result from later steps as {{createABackup.response.data}}.

Request

Path parameters

backendstringrequired

Specifies the backend storage system where the backup will be stored (e.g., `filesystem`, `gcs`, `s3`, `azure`).

Request body

Enter the body as JSON in the step's Body field.

idstring

The ID of the backup (required). Must be URL-safe and work as a filesystem path, only lowercase, numbers, underscore, minus characters allowed.

configobject

Backup custom configuration.

Endpointstring

Name of the endpoint, e.g. s3.amazonaws.com.

Bucketstring

Name of the bucket, container, volume, etc.

Pathstring

Path or key within the bucket.

CPUPercentageinteger

Desired CPU core utilization ranging from 1%-80%

Default 50

ChunkSizeinteger

Deprecated, has no effect.

CompressionLevelstring

compression level used by compression algorithm

One ofDefaultCompressionBestSpeedBestCompressionZstdDefaultCompressionZstdBestSpeedZstdBestCompressionNoCompressionDefault "DefaultCompression"

dedupeReplicasboolean

If true, shards of replicated collections proven in sync by async-replication checkpoints are archived by one replica instead of all, and restore copies them back to every replica; other shards are archived by every replica. Requires async replication, BACKUP_DEDUPE_ENABLED=true (else 422) and a Weaviate license key (else 403) on every node. Such backups restore only on versions that support this option; restoring needs no license.

Default false

dedupeConvergenceTimeoutSecondsinteger

How long the coordinator waits for replica convergence proof before shards fall back to being archived by every replica. Only used when dedupeReplicas is set. When omitted, BACKUP_DEDUPE_CONVERGENCE_TIMEOUT applies (15 seconds unless configured). The wait happens synchronously inside the backup creation request, which blocks for roughly 10 seconds plus up to this timeout; size client timeouts accordingly.

Default 15

includearray<string>

List of collections to include in the backup creation process. If not set, all collections the caller may back up are included. Cannot be used together with `exclude`. Permits wildcards, e.g. `*` or `prefix*`, which match only collections the caller may back up. A list that matches no collection is allowed when users or roles are selected, including through omitted identity selectors.

excludearray<string>

List of collections to exclude from the backup creation process. If not set, all collections the caller may back up are included. Cannot be used together with `include`. Permits wildcards, e.g. `*` or `prefix*`. Excluding every collection is allowed when users or roles are selected, including through omitted identity selectors.

includeUsersarray<string>

List of dynamic DB users to include in the backup. Permits `*` and `?` wildcards, e.g. `*` or `prefix*`. When omitted or null, the whole dynamic-user store is captured. An empty list or wildcards matching nothing omit the user snapshot; restoring it leaves existing users untouched. Otherwise, only matching users are captured. An exact user name that does not exist is rejected. Selected users, including those selected by omission, permit a backup with zero collections. No per-user permission check is applied.

includeRolesarray<string>

List of RBAC roles to include in the backup. Permits `*` and `?` wildcards, e.g. `*` or `prefix*`. When omitted or null, the whole RBAC state is captured, including built-in roles and assignments. An empty list or wildcards matching nothing omit the RBAC snapshot; restoring it leaves existing roles untouched. Otherwise, only matching roles are captured. An exact role name that does not exist is rejected. Explicit selectors cannot select built-in roles: exact names are rejected and wildcards exclude them. Selected roles, including built-in roles selected by omission, permit a backup with zero collections. No per-role permission check is applied.

incremental_base_backup_idstring

The ID of an existing backup to use as the base for a file-based incremental backup. If set, only files that have changed since the base backup will be included in the new backup.

Default null

json
{
  "id": "string",
  "config": {
    "Endpoint": "string",
    "Bucket": "string",
    "Path": "string",
    "CPUPercentage": 50,
    "ChunkSize": 0,
    "CompressionLevel": "DefaultCompression",
    "dedupeReplicas": false,
    "dedupeConvergenceTimeoutSeconds": 15
  },
  "include": [
    "string"
  ],
  "exclude": [
    "string"
  ],
  "includeUsers": [
    "string"
  ],
  "includeRoles": [
    "string"
  ],
  "incremental_base_backup_id": null
}

Response

Returns 200 with a any. Read it in later steps with {{createABackup.response.data.<field>}}.

Need more? See the Weaviate guide for connection setup and behaviour shared by every action.