# Install, data directory and logs
Source: https://nordvec.com/sk/docs/guides/desktop/install-and-data#what-is-in-the-data-directory

## What is in the data directory [#what-is-in-the-data-directory]

Everything the app keeps on your computer is in the data directory for your
operating system, above. Each signed-in account has its own sync store.

| Name                              | What it holds                                                                                                                                                                                                           |
| --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `sync-state-<account key>.sqlite` | The sync store for one signed-in account: watched folders, exclusions, the upload and removal queues and what has synced. File names and paths in it are encrypted with a key the operating system's keychain protects. |
| `logs/nordvec-<date>.log`         | The app's log for one day. It records events, counts and error codes, and every line names the app version that wrote it. It is written not to contain file names, paths or file contents.                              |
| `logs/nordvec-<date>.1.log`       | The earlier part of a day's log, kept when that day's log reaches its size limit. At most one per day.                                                                                                                  |
| `window-state.json`               | The window's last size and position.                                                                                                                                                                                    |
| `ui-locale`                       | The language of the last page the app showed, so the tray menu and notifications use it.                                                                                                                                |
| `update-health.json`              | When the app last checked for updates and whether the checks are failing.                                                                                                                                               |
| `whats-new-version`               | The last version whose list of changes the app has shown, so each update's changes are shown once.                                                                                                                      |
| `first-run-done`                  | Marks that the first launch has run, so start-at-login is turned on for a new install only.                                                                                                                             |
| `crash-ledger.json`               | When the app last stopped because of an error, as times only, so a second stop soon after reopening keeps it closed instead of reopening it again.                                                                      |

While the sync store is open, SQLite keeps `-wal`, `-shm`, `-journal` files beside
`sync-state-<account key>.sqlite`; they belong to the store. The app
also keeps the signed-in session's cookies and site storage in the data
directory. The cookie store is encrypted with a key the operating system's keychain protects.

On a computer that ran an early build, you may also find:

| Name                                     | What it holds                                                                                                                                                           |
| ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `sync-state.json`                        | State written by an early build. At sign-in the app hands it to the account that owns it, and keeps it when it cannot tell whose it is.                                 |
| `logs/nordvec.log`                       | The log an early build wrote. It is deleted with the daily logs once it is old enough.                                                                                  |
| `logs/nordvec.log.old`                   | The previous log an early build kept beside it, deleted on the same terms.                                                                                              |
| `sync-state-<account key>.json`          | Per-account state written by an early build. At sign-in the app copies it into the sync store and renames it once the copy reads back.                                  |
| `sync-state-<account key>.json.imported` | The same early state after its contents were copied into the sync store. It holds file names and paths unencrypted and nothing reads it again, so it is safe to delete. |