# Export and import

*Settings > Export and import* writes the wall to a file, and takes a file in. To keep a whole wall, accounts and all, use [Backups](https://qkvm.com/docs/web/backups) instead.

## Export

1. Press *Export* and type your password again.
2. Tick the parts: KVMs and servers, saved actions, alert settings, the wall's settings, and signing in through an identity provider.
3. Choose the kind of file:

| Kind | File | Holds |
|---|---|---|
| With a passphrase (10 characters or more) | `qkvm-<date>.qkvm` | everything, the devices' passwords and saved texts included; nothing of the wall can be read without the passphrase |
| Without one | `qkvm-<date>.json` | the same, with every password, the alert address and the saved texts left out; it can be read and compared anywhere |

Keep the passphrase somewhere other than the file.

## Import

1. Press *Import*, choose the file, and give its passphrase if it has one.
2. Read the list. It shows every device with its address, how its certificate is checked and where its console link leads, and every saved action with what it types. A file may come from somebody else.
3. Tick what to take in.

## What an import does

- A machine is added only where the wall has none at that address, and none that is the same device under another address.
- A saved action is added where the wall has none of that name.
- Nothing on the wall is changed or removed by a file, and taking the same file in twice adds nothing twice.
- The alert settings and the wall's settings are replaced, and only where you tick them.
- Identity provider settings come in switched off: an admin switches them on in their box.
- A device from an encrypted file works at once. One from a plain file says "Login failed", with *Update login*, until its password is typed.
- No device is talked to while a file is read.

## Fill a new wall by hand

A file written by hand in the same form is taken in as well:

```
{"format": "qkvm-export", "version": 1, "devices": [{"url": "https://192.168.1.20", "kind": "kvmd", "username": "admin", "password": "..."}]}
```

A plain file with passwords in it is yours to look after; the page says so when it reads one.

## Not in any file

Accounts, tokens and display links, two-factor keys, the recovery key, and the history. Each is bound to the qKVM it was made on.

## Good to know

- An export takes an admin with a password here. A token cannot ask for one, nor an account that only an identity provider signs in.
- Every export, and every device a file adds, is written to the activity log.
- The Desktop App reads and writes the same files.

## Related

- [Backups](https://qkvm.com/docs/web/backups)
- [Use the wall](https://qkvm.com/docs/web/using-it)
- [Single sign-on](https://qkvm.com/docs/web/single-sign-on)

[Full reference](https://github.com/qkvm/qkvm/blob/main/GUIDE.md#export-and-import)
