mirror of
https://github.com/zadam/trilium.git
synced 2025-10-08 22:49:12 +08:00
don't save backups with colons in filenames, doesn't work on windows
This commit is contained in:
parent
2f2969b2a1
commit
3a55d08152
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ async function regularBackup() {
|
|||
async function backupNow() {
|
||||
const now = utils.nowTimestamp();
|
||||
|
||||
const date_str = new Date().toISOString().substr(0, 19);
|
||||
const date_str = new Date().toISOString().substr(0, 19).replace(/:/g, '');
|
||||
|
||||
const backupFile = dataDir.BACKUP_DIR + "/" + "backup-" + date_str + ".db";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue