Skeudenn / main/db/backup-service / backupDatabaseFile
Function: backupDatabaseFile() ​
backupDatabaseFile(
databaseFile,databaseDirectory,now?):BackupInfo
Defined in: src/main/db/backup-service.ts:90
Copies the database stored in databaseFile through a read-only connection of its own (the app's connection stays untouched, and a writer holding the lock makes this one wait up to the busy timeout), for the backup worker thread. Same copy and same file name as createBackup.
Parameters ​
databaseFile ​
string
databaseDirectory ​
string
now? ​
Date = ...