Skeudenn / main/db/backup-service / scheduleRestore
Function: scheduleRestore() ​
scheduleRestore(
userDataDir,databaseDirectory,name):string|null
Defined in: src/main/db/backup-service.ts:123
Asks for name to replace the database at the next start. The open file is not touched: overwriting a database in use isn't safe, so applyPendingRestore does it before the connection is opened. Returns an error message (interface language), or null when the restoration is scheduled.
Parameters ​
userDataDir ​
string
databaseDirectory ​
string
name ​
string
Returns ​
string | null