younifyd
Menu

Restore from a backup

Restore from a backup

POST/v1/backups/{backend}/{id}/restore

Use it in a workflow

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

Request

Path parameters

backendstringrequired

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

idstringrequired

The unique identifier of the backup to restore from. Must be URL-safe and compatible with filesystem paths (only lowercase, numbers, underscore, minus characters allowed).

Request body

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

configobject

Backup custom configuration

Endpointstring

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

Bucketstring

Name of the bucket, container, volume, etc

Pathstring

Path within the bucket

CPUPercentageinteger

Desired CPU core utilization ranging from 1%-80%

Default 50

rolesOptionsstring

How roles should be restored

One ofnoRestoreallDefault "noRestore"

usersOptionsstring

How users should be restored

One ofnoRestoreallDefault "noRestore"

includearray<string>

List of collections (classes) to include in the backup restoration process. If not set, all collections in the backup the caller may restore are included. Permits wildcards, e.g. `*` or `prefix*`, which match only collections the caller may restore. A list that matches no collection is rejected. Any entry is rejected when the backup contains no collections.

excludearray<string>

List of collections (classes) to exclude from the backup restoration process. Any entry is rejected when the backup contains no collections.

node_mappingobject

Allows overriding the node names stored in the backup with different ones. Useful when restoring backups to a different environment.

overwriteAliasboolean

Allows ovewriting the collection alias if there is a conflict

json
{
  "config": {
    "Endpoint": "string",
    "Bucket": "string",
    "Path": "string",
    "CPUPercentage": 50,
    "rolesOptions": "noRestore",
    "usersOptions": "noRestore"
  },
  "include": [
    "string"
  ],
  "exclude": [
    "string"
  ],
  "node_mapping": {},
  "overwriteAlias": false
}

Response

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

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