# Database versions

Duplicati use a database named `Duplicati-server.sqlite` to keep track of all configured backups. This database contains sensitive information, such as connection credentials and encryption passphrases. To protect the information in the database, it is highly recommeded that you set up an encryption key. Setting a key will ensure that all sensitive fields are encrypted and protected against a future leak of the database.

Besides the server database, Duplicati also has a [local database](https://docs.duplicati.com/database-and-storage/the-local-database) which is created for each configured backup. The local database is essentially a cache of what data is stored remotely, so the backup and restore operations can make queries without needing access to the remote destination. This database can be recreated from the remote data so it should generally not be backed up It contains the paths from the local database, which may be sensitive information.

## Server database

<figure><picture><source srcset="https://2363712449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7cMJiGuXy340g9NzpxLY%2Fuploads%2Fgit-blob-f1bf2726723134079d9ea841eea0712981cec7ca%2Fserver-database-3.png?alt=media" media="(prefers-color-scheme: dark)"><img src="https://2363712449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7cMJiGuXy340g9NzpxLY%2Fuploads%2Fgit-blob-168a666cd679fd70810250b87ad8a854aa8cafef%2Fserver-database-4.png?alt=media" alt=""></picture><figcaption><p>Schema overview of the server database</p></figcaption></figure>

The server database was updated in these versions:

Version 5 and less: 2.0.4.23 and earlier

Version 6: Duplicati 2.0.8.1

Version 8: Duplicati 2.1.0.0

Version 9: Duplicati 2.2.0.0

## Local database

<figure><picture><source srcset="https://2363712449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7cMJiGuXy340g9NzpxLY%2Fuploads%2Fgit-blob-80496605a63797e888f1eb96fdac912ccc4a4df8%2Flocal-database.png?alt=media" media="(prefers-color-scheme: dark)"><img src="https://2363712449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F7cMJiGuXy340g9NzpxLY%2Fuploads%2Fgit-blob-10571fe67e28fb3c3af0075083e676af47a6e181%2Flocal-database-2.png?alt=media" alt=""></picture><figcaption><p>Schema overview of the local database</p></figcaption></figure>

The local database was updated in these versions:

Version 10: 2.0.5.1

Version 11: 2.0.6.3

Version 12: 2.0.8.1

Version 14: 2.1.0.0

Version 17: 2.2.0.0
