diff --git a/src/public/app/dialogs/options/advanced.js b/src/public/app/dialogs/options/advanced.js index 1ea1fabca..b12f67268 100644 --- a/src/public/app/dialogs/options/advanced.js +++ b/src/public/app/dialogs/options/advanced.js @@ -17,19 +17,18 @@ const TPL = `

-

Debugging

+

Anonymize database

+ +

This action will create a new copy of the database and anonymise it (remove all note content and leave only structure and some non-sensitive metadata) + for sharing online for debugging purposes without fear of leaking your personal data.



-

This action will create a new copy of the database and anonymise it (remove all note content and leave only structure and metadata) - for sharing online for debugging purposes without fear of leaking your personal data.

-

Backup database

- +

Trilium has automatic backup (daily, weekly, monthly), but you can also trigger backup manually here.

-
-
+

Vacuum database

diff --git a/src/services/backup.js b/src/services/backup.js index a9346b159..15f24e648 100644 --- a/src/services/backup.js +++ b/src/services/backup.js @@ -63,13 +63,13 @@ async function backupNow(name) { return await syncMutexService.doExclusively(async () => { const backupFile = `${dataDir.BACKUP_DIR}/backup-${name}.db`; - const success = await copyFile(backupFile, sql); + const success = await copyFile(backupFile); if (success) { - log.error(`Creating backup ${backupFile} failed`); + log.info("Created backup at " + backupFile); } else { - log.info("Created backup at " + backupFile); + log.error(`Creating backup ${backupFile} failed`); } return backupFile;