Feature: backups

The Whole Wall in One File, Every Night

Settings, Backups writes an encrypted backup of the wall to a folder every day: every machine with its password, every account with its second step, the alerts and the activity log. It opens with its recovery kit, and with nothing else.

Set It Up Once

  1. Make the keyIt asks for your password, then shows the recovery kit once: print it, keep it apart from the wall.
  2. Name the folderA whole path on the wall's computer, or a mounted share; not the data folder.
  3. ChooseThe hour (3 at night unless you say), how many to keep (7), and whether the history goes in.
  4. Verify the latestIt reads the newest backup whole, restores nothing, and says what it holds.

What Is in a Backup

Everything to bring it back

Machines with their passwords and certificates, saved actions, accounts with roles and second steps, tokens, alert destinations, the identity provider, the settings.

The activity log

Every file, with its key and where its chain had come to, so the restored log checks as the wall's did. The history too, where ticked.

Sealed

A key of its own for each file (HKDF-SHA256), AES-256-GCM in pieces of a mebibyte: a file cut short or changed anywhere is refused whole.

Told when it fails

A run that fails is in the activity log and goes to every alert destination that asks for Backup failed. A folder that never answers counts as failed after an hour.

Restoring, and What a Backup Does Not Do

Restore
On the new computer, with qKVM not running: python -m qkvm --restore FILE --backup-key kit.txt --data-dir NEW, into a new or empty data folder.
It refuses
A folder with anything in it, a backup made with another key (it names the one it needs), one made by a later version, and one in which anything was changed, cut off or added.
If it is stopped
Run the same command again: it takes away what the stopped one wrote, and begins again.
Afterwards
Sign in as before. Make a new backup key and switch backups on again: a restore leaves them off, so two walls never write to one folder.
A lost kit
Nobody can open the backups made with it, qKVM included. A new key opens the backups made from then on.
A backup and its kit
Together they hold every device password in it. Keep the kit as a password is kept, not on the wall's computer and not with the backups.
Where to
A folder or a mounted share; keep it on another disk than the wall's. FTP, Dropbox, Drive and S3 are not built in. A backup a day can be up to a day old.
Locked start
Started with --locked-start, nothing is made until somebody signs in, and every run says why.

Export and Import Between Walls

An export is a file for a person to take machines and settings to another wall, or to the Desktop App, which reads and writes the same files. Accounts, tokens and two-factor keys are in no export: they go with a backup.

Encrypted

A .qkvm file with a passphrase of ten characters or more (scrypt and AES-256-GCM): device passwords and saved texts in it, nothing readable without it.

Plain, or by hand

A .json file without passwords, to read and compare. A list of devices written by hand in the same form fills a new wall in one go.

Read before it is taken

Import shows every device with its address and where its console link leads, and every saved action with the text it types, before anything is taken.

Adds, never changes

What is not on the wall yet is added. Nothing there is changed or removed, and the same file taken in twice adds nothing twice.