The safest time to check a Trilium backup is while your current notebook still opens. Make a named copy, recover it in a fresh desktop instance, then check notes and an attachment you can recognize. This workflow covers the desktop application and a single library. It follows the publisher’s instructions for the current release without claiming a test restore.

Find the library you mean to protect

Open the notebook in the desktop app, then use Menu → About Trilium Notes to find its active data directory. Use that path if you have multiple copies, a portable installation or a custom directory. The data directory includes the note database, instance settings and a default backup folder. The publisher’s v0.107.0 release provides desktop downloads for macOS, Windows and Linux. Choose the build that matches your system if you need a second installation. The desktop app and backups have no subscription fee. External drives, server hosting and optional off-site storage can cost money.

Set a password before making an off-site copy

In Options → Backup → Backup options, select Turn on encryption and set a password if the destination is shared or unencrypted. Record it separately from the backup. Trilium uses a .tnbackup container for encrypted backups and leaves existing copies as they were. If your system lacks a supported keyring, the desktop control can be unavailable. Use a trusted encrypted destination in that case. Keep a local copy you can reach if the external service or drive is unavailable.

Create a backup and save an independent copy

Open Options → Backup and select Backup now. Wait for the completion notification, then use Existing backups to download the new backup-now entry. Keep a dated copy on a second drive or another protected storage location. Automatic daily, weekly, monthly and pre-migration copies give you a small rotation. Keep a separate dated copy for any recovery point you need to preserve over time. If you change the desktop Backup location, confirm that the next backup actually reaches it.

Restore into a fresh desktop instance

Use a fresh desktop instance on a second computer or in a separate user profile for the first rehearsal. Keep it disconnected from Trilium sync. In the setup menu, select Restore from backup and choose the copied .db or .tnbackup file. Enter the password if the backup is encrypted. Keep the original installation until you finish the checks below.

Protect the current database before replacing it

Use Options → Backup → Restore a backup if you need to recover an existing desktop instance. This starts a restart and can replace the active database. Choose the offered option to back up the current database before replacement, even if you suspect it contains the wrong notes. Keep that copy separate from the backup you intend to restore. If the current library syncs to a server, disconnect and plan the recovery across its peers first.

Check your notes before enabling sync

Open a recent note, follow a nested branch, search for a phrase you remember and open an attachment. Check that a recent change you expect is present. Record the backup date and which checks passed. For a real incident on a synced library, plan recovery across all peers before reconnecting. The publisher warns that another peer can bring newer changes into the restored older copy.

Check instance settings when moving to another computer

A backup of the notes database restores your library. Trilium keeps settings for the application instance in a separate config.ini in its data directory. If you need to bring those settings over too, preserve that file privately and read the data-directory instructions before using it on the destination. Check any saved server addresses and port settings. Storage paths and sync plans can differ between machines.

Troubleshoot missing files and rejected passwords

If you cannot find the backup, check the active data directory and the configured backup location. A missing external drive can make the backup fail or send it to the default folder. Check available space and wait for a fresh completion notification before copying. If a password is rejected, match it to the date of the file because password changes apply only to later backups. If a restore fails, preserve the source library, try a known-good dated copy and keep sync disconnected while diagnosing the failure.

Official instructions and sources

Trilium backup, restore and encryption instructionsTrilium data directory and instance settingsTrilium synchronization documentationTrilium Notes v0.107.0 desktop downloadsTrilium application license

Original AltStack guide by Sushil Kumar Sah. Installation steps follow provider documentation; they do not imply testing on every supported device.