Qdrant snapshot backup, recovery, upload, and download operations.
Functions accepting a Qdrant.Client are the canonical API. Calls without a
client remain available for compatibility and use the application configuration.
Summary
Functions
Streams a full snapshot to destination.
Streams a shard snapshot to destination.
Streams a collection snapshot to destination.
Returns the full snapshot contents as a bounded in-memory binary.
Returns the shard snapshot contents as a bounded in-memory binary.
Returns the collection snapshot contents as a bounded in-memory binary.
Recovers a collection from uploaded snapshot data.
Recovers a shard from uploaded snapshot data.
Functions
@spec create_full_snapshot() :: Qdrant.Types.result()
@spec create_full_snapshot(Qdrant.Client.t()) :: Qdrant.Types.result()
@spec create_full_snapshot(Qdrant.Types.request_options() | boolean() | nil) :: Qdrant.Types.result()
@spec create_full_snapshot(Qdrant.Client.t(), Qdrant.Types.request_options()) :: Qdrant.Types.result()
@spec create_shard_snapshot(String.t(), integer()) :: Qdrant.Types.result()
@spec create_shard_snapshot(Qdrant.Client.t(), String.t(), integer()) :: Qdrant.Types.result()
@spec create_shard_snapshot(String.t(), integer(), boolean() | nil) :: Qdrant.Types.result()
@spec create_shard_snapshot( Qdrant.Client.t(), String.t(), integer(), Qdrant.Types.request_options() ) :: Qdrant.Types.result()
@spec create_snapshot(String.t()) :: Qdrant.Types.result()
@spec create_snapshot(Qdrant.Client.t(), String.t()) :: Qdrant.Types.result()
@spec create_snapshot(String.t(), boolean() | nil) :: Qdrant.Types.result()
@spec create_snapshot(Qdrant.Client.t(), String.t(), Qdrant.Types.request_options()) :: Qdrant.Types.result()
@spec delete_full_snapshot(String.t()) :: Qdrant.Types.result()
@spec delete_full_snapshot(Qdrant.Client.t(), String.t()) :: Qdrant.Types.result()
@spec delete_full_snapshot(String.t(), boolean() | nil) :: Qdrant.Types.result()
@spec delete_full_snapshot( Qdrant.Client.t(), String.t(), Qdrant.Types.request_options() ) :: Qdrant.Types.result()
@spec delete_shard_snapshot(String.t(), integer(), String.t()) :: Qdrant.Types.result()
@spec delete_shard_snapshot(Qdrant.Client.t(), String.t(), integer(), String.t()) :: Qdrant.Types.result()
@spec delete_shard_snapshot(String.t(), integer(), String.t(), boolean() | nil) :: Qdrant.Types.result()
@spec delete_shard_snapshot( Qdrant.Client.t(), String.t(), integer(), String.t(), Qdrant.Types.request_options() ) :: Qdrant.Types.result()
@spec delete_snapshot(String.t(), String.t()) :: Qdrant.Types.result()
@spec delete_snapshot(Qdrant.Client.t(), String.t(), String.t()) :: Qdrant.Types.result()
@spec delete_snapshot(String.t(), String.t(), boolean() | nil) :: Qdrant.Types.result()
@spec delete_snapshot( Qdrant.Client.t(), String.t(), String.t(), Qdrant.Types.request_options() ) :: Qdrant.Types.result()
@spec download_full_snapshot_to_file(String.t(), Path.t()) :: {:ok, Path.t()} | {:error, Qdrant.Error.t()}
@spec download_full_snapshot_to_file(Qdrant.Client.t(), String.t(), Path.t()) :: {:ok, Path.t()} | {:error, Qdrant.Error.t()}
@spec download_full_snapshot_to_file( String.t(), Path.t(), Qdrant.Types.request_options() ) :: {:ok, Path.t()} | {:error, Qdrant.Error.t()}
@spec download_full_snapshot_to_file( Qdrant.Client.t(), String.t(), Path.t(), Qdrant.Types.request_options() ) :: {:ok, Path.t()} | {:error, Qdrant.Error.t()}
Streams a full snapshot to destination.
@spec download_shard_snapshot_to_file( Qdrant.Client.t(), String.t(), integer(), String.t(), Path.t() ) :: {:ok, Path.t()} | {:error, Qdrant.Error.t()}
@spec download_shard_snapshot_to_file( String.t(), integer(), String.t(), Path.t(), Qdrant.Types.request_options() ) :: {:ok, Path.t()} | {:error, Qdrant.Error.t()}
@spec download_shard_snapshot_to_file( Qdrant.Client.t(), String.t(), integer(), String.t(), Path.t(), Qdrant.Types.request_options() ) :: {:ok, Path.t()} | {:error, Qdrant.Error.t()}
Streams a shard snapshot to destination.
@spec download_snapshot_to_file(String.t(), String.t(), Path.t()) :: {:ok, Path.t()} | {:error, Qdrant.Error.t()}
@spec download_snapshot_to_file(Qdrant.Client.t(), String.t(), String.t(), Path.t()) :: {:ok, Path.t()} | {:error, Qdrant.Error.t()}
@spec download_snapshot_to_file( String.t(), String.t(), Path.t(), Qdrant.Types.request_options() ) :: {:ok, Path.t()} | {:error, Qdrant.Error.t()}
@spec download_snapshot_to_file( Qdrant.Client.t(), String.t(), String.t(), Path.t(), Qdrant.Types.request_options() ) :: {:ok, Path.t()} | {:error, Qdrant.Error.t()}
Streams a collection snapshot to destination.
@spec get_full_snapshot(String.t()) :: Qdrant.Types.result()
@spec get_full_snapshot(Qdrant.Client.t(), String.t()) :: Qdrant.Types.result()
@spec get_full_snapshot(Qdrant.Client.t(), String.t(), Qdrant.Types.request_options()) :: Qdrant.Types.result()
Returns the full snapshot contents as a bounded in-memory binary.
@spec get_shard_snapshot(String.t(), integer(), String.t()) :: Qdrant.Types.result()
@spec get_shard_snapshot(Qdrant.Client.t(), String.t(), integer(), String.t()) :: Qdrant.Types.result()
@spec get_shard_snapshot( Qdrant.Client.t(), String.t(), integer(), String.t(), Qdrant.Types.request_options() ) :: Qdrant.Types.result()
Returns the shard snapshot contents as a bounded in-memory binary.
@spec get_snapshot(String.t(), String.t()) :: Qdrant.Types.result()
@spec get_snapshot(Qdrant.Client.t(), String.t(), String.t()) :: Qdrant.Types.result()
@spec get_snapshot( Qdrant.Client.t(), String.t(), String.t(), Qdrant.Types.request_options() ) :: Qdrant.Types.result()
Returns the collection snapshot contents as a bounded in-memory binary.
@spec list_full_snapshots() :: Qdrant.Types.result()
@spec list_full_snapshots(Qdrant.Client.t()) :: Qdrant.Types.result()
@spec list_full_snapshots(Qdrant.Types.request_options()) :: Qdrant.Types.result()
@spec list_full_snapshots(Qdrant.Client.t(), Qdrant.Types.request_options()) :: Qdrant.Types.result()
@spec list_shard_snapshots(String.t(), integer()) :: Qdrant.Types.result()
@spec list_shard_snapshots(Qdrant.Client.t(), String.t(), integer()) :: Qdrant.Types.result()
@spec list_shard_snapshots( Qdrant.Client.t(), String.t(), integer(), Qdrant.Types.request_options() ) :: Qdrant.Types.result()
@spec list_snapshots(String.t()) :: Qdrant.Types.result()
@spec list_snapshots(Qdrant.Client.t(), String.t()) :: Qdrant.Types.result()
@spec list_snapshots(Qdrant.Client.t(), String.t(), Qdrant.Types.request_options()) :: Qdrant.Types.result()
@spec recover_from_snapshot(String.t(), Qdrant.Types.request_body()) :: Qdrant.Types.result()
@spec recover_from_snapshot( Qdrant.Client.t(), String.t(), Qdrant.Types.request_body() ) :: Qdrant.Types.result()
@spec recover_from_snapshot( String.t(), Qdrant.Types.request_body(), Qdrant.Types.request_options() | boolean() | nil ) :: Qdrant.Types.result()
@spec recover_from_snapshot( Qdrant.Client.t(), String.t(), Qdrant.Types.request_body(), Qdrant.Types.request_options() ) :: Qdrant.Types.result()
@spec recover_from_snapshot( String.t(), Qdrant.Types.request_body(), boolean() | nil, String.t() | nil ) :: Qdrant.Types.result()
@spec recover_from_uploaded_snapshot(String.t(), binary()) :: Qdrant.Types.result()
@spec recover_from_uploaded_snapshot(Qdrant.Client.t(), String.t(), binary()) :: Qdrant.Types.result()
@spec recover_from_uploaded_snapshot( String.t(), binary(), Qdrant.Types.request_options() | boolean() | nil ) :: Qdrant.Types.result()
@spec recover_from_uploaded_snapshot( Qdrant.Client.t(), String.t(), binary(), Qdrant.Types.request_options() ) :: Qdrant.Types.result()
@spec recover_from_uploaded_snapshot( String.t(), binary(), boolean() | nil, String.t() | nil ) :: Qdrant.Types.result()
Recovers a collection from uploaded snapshot data.
Binary data is uploaded with multipart field snapshot. Set source: :file
to stream a path, or use recover_from_uploaded_snapshot_file/4. The
multipart filename can be overridden with :filename.
@spec recover_from_uploaded_snapshot_file(String.t(), Path.t()) :: Qdrant.Types.result()
@spec recover_from_uploaded_snapshot_file(Qdrant.Client.t(), String.t(), Path.t()) :: Qdrant.Types.result()
@spec recover_from_uploaded_snapshot_file( String.t(), Path.t(), Qdrant.Types.request_options() ) :: Qdrant.Types.result()
@spec recover_from_uploaded_snapshot_file( Qdrant.Client.t(), String.t(), Path.t(), Qdrant.Types.request_options() ) :: Qdrant.Types.result()
@spec recover_shard_from_snapshot(String.t(), integer(), Qdrant.Types.request_body()) :: Qdrant.Types.result()
@spec recover_shard_from_snapshot( Qdrant.Client.t(), String.t(), integer(), Qdrant.Types.request_body() ) :: Qdrant.Types.result()
@spec recover_shard_from_snapshot( String.t(), integer(), Qdrant.Types.request_body(), Qdrant.Types.request_options() | boolean() | nil ) :: Qdrant.Types.result()
@spec recover_shard_from_snapshot( Qdrant.Client.t(), String.t(), integer(), Qdrant.Types.request_body(), Qdrant.Types.request_options() ) :: Qdrant.Types.result()
@spec recover_shard_from_snapshot( String.t(), integer(), Qdrant.Types.request_body(), boolean() | nil, String.t() | nil ) :: Qdrant.Types.result()
@spec recover_shard_from_uploaded_snapshot(String.t(), integer(), binary()) :: Qdrant.Types.result()
@spec recover_shard_from_uploaded_snapshot( Qdrant.Client.t(), String.t(), integer(), binary() ) :: Qdrant.Types.result()
@spec recover_shard_from_uploaded_snapshot( String.t(), integer(), binary(), Qdrant.Types.request_options() | boolean() | nil ) :: Qdrant.Types.result()
@spec recover_shard_from_uploaded_snapshot( Qdrant.Client.t(), String.t(), integer(), binary(), Qdrant.Types.request_options() ) :: Qdrant.Types.result()
@spec recover_shard_from_uploaded_snapshot( String.t(), integer(), binary(), boolean() | nil, String.t() | nil ) :: Qdrant.Types.result()
Recovers a shard from uploaded snapshot data.
Supports binary data and streamed paths in the same way as
recover_from_uploaded_snapshot/4, including :filename and :checksum.
@spec recover_shard_from_uploaded_snapshot_file(String.t(), integer(), Path.t()) :: Qdrant.Types.result()
@spec recover_shard_from_uploaded_snapshot_file( Qdrant.Client.t(), String.t(), integer(), Path.t() ) :: Qdrant.Types.result()
@spec recover_shard_from_uploaded_snapshot_file( String.t(), integer(), Path.t(), Qdrant.Types.request_options() ) :: Qdrant.Types.result()
@spec recover_shard_from_uploaded_snapshot_file( Qdrant.Client.t(), String.t(), integer(), Path.t(), Qdrant.Types.request_options() ) :: Qdrant.Types.result()