Interface Backup

interface Backup {
    create(args): Promise<{
        backend?: string;
        classes?: string[];
        error?: string;
        id?: string;
        path?: string;
        status?: "STARTED" | "TRANSFERRING" | "TRANSFERRED" | "SUCCESS" | "FAILED";
    }>;
    getCreateStatus(args): Promise<{
        backend?: string;
        error?: string;
        id?: string;
        path?: string;
        status?: "STARTED" | "TRANSFERRING" | "TRANSFERRED" | "SUCCESS" | "FAILED";
    }>;
    getRestoreStatus(args): Promise<{
        backend?: string;
        error?: string;
        id?: string;
        path?: string;
        status?: "STARTED" | "TRANSFERRING" | "TRANSFERRED" | "SUCCESS" | "FAILED";
    }>;
    restore(args): Promise<{
        backend?: string;
        classes?: string[];
        error?: string;
        id?: string;
        path?: string;
        status?: "STARTED" | "TRANSFERRING" | "TRANSFERRED" | "SUCCESS" | "FAILED";
    }>;
}

Methods

  • Create a backup of the database.

    Parameters

    Returns Promise<{
        backend?: string;
        classes?: string[];
        error?: string;
        id?: string;
        path?: string;
        status?: "STARTED" | "TRANSFERRING" | "TRANSFERRED" | "SUCCESS" | "FAILED";
    }>

    The response from Weaviate.

  • Get the status of a backup creation.

    Parameters

    Returns Promise<{
        backend?: string;
        error?: string;
        id?: string;
        path?: string;
        status?: "STARTED" | "TRANSFERRING" | "TRANSFERRED" | "SUCCESS" | "FAILED";
    }>

    The status of the backup creation.

  • Get the status of a backup restore.

    Parameters

    Returns Promise<{
        backend?: string;
        error?: string;
        id?: string;
        path?: string;
        status?: "STARTED" | "TRANSFERRING" | "TRANSFERRED" | "SUCCESS" | "FAILED";
    }>

    The status of the backup restore.

  • Restore a backup of the database.

    Parameters

    Returns Promise<{
        backend?: string;
        classes?: string[];
        error?: string;
        id?: string;
        path?: string;
        status?: "STARTED" | "TRANSFERRING" | "TRANSFERRED" | "SUCCESS" | "FAILED";
    }>

    The response from Weaviate.