Trilium Electron API
    Preparing search index...

    Interface NativeBackupPickResult

    Outcome of ElectronRestoreApi.pickBackup: what the chosen backup is, never where it is.

    The file itself stays with the main process, which holds it as the one waiting to be restored, so the renderer is given only what the screen has to show and decide with.

    interface NativeBackupPickResult {
        encrypted?: boolean;
        fileName?: string;
        message?: string;
        status: "cancelled" | "error" | "selected";
    }
    Index
    encrypted?: boolean

    Whether a passphrase has to be asked for before it can be restored.

    fileName?: string

    Display name of the chosen backup (when status === "selected").

    message?: string

    Failure detail (when status === "error"), e.g. setup already being busy.

    status: "cancelled" | "error" | "selected"