Trilium Electron API
    Preparing search index...

    Interface ElectronRestoreApi

    Choosing a backup to restore from the desktop, where the file is already on the same disk as the database it is going to replace and has no business being uploaded to reach it.

    Only usable during setup: what it puts forward is restored by the ordinary POST /api/setup/restore/start, which refuses once the application is initialized.

    interface ElectronRestoreApi {
        pickBackup(): Promise<NativeBackupPickResult>;
    }
    Index
    • Prompts a native "open file" dialog for a .db or .tnbackup backup and, if one is chosen, makes it the backup waiting to be restored.

      Returns Promise<NativeBackupPickResult>