How to…
Restore a backup
Put the desktop app's lab back as it was, from your own backup or from the copy BioManager kept before an update.
- Quit BioManager.
- Open its data folder:
~/Library/Application Support/Biomanager/on a Mac,%APPDATA%\Biomanager\on Windows,~/.local/share/Biomanager/on Linux. The lab's database isdata/biomanager.db. - Move
data/biomanager.dbsomewhere safe, rather than deleting it. - Put the backup in its place, named
biomanager.db.From your Time Machine or File History copy of the folder; or one of the copies BioManager made before a new version changed the database,data/backups/before-upgrade-….db(the last ten are kept). Files added to records and pages are in theuploadsfolder; put it back from the same backup too. - Open BioManager. To undo an update, open it with the version you had before.
BioManager opens the lab as it was when that backup was made.
data/old-labs/.On a lab server
A server backs up every night and restores the newest backup every week to prove it works. Restoring is one command, run by whoever
looks after the server, and never deletes what it replaces: see deploy/RUNBOOK.md in the server bundle and
Keeping the data safe. For a mistake in a bulk change, Settings → History → Undo is enough.
The backups are locked with the lab's key, so a backup that leaks can't be read. On the same server they open by themselves. On a new machine, which doesn't have the key, the restore is given the lab's recovery key (the runbook says how); once the lab is back, an admin enters the recovery key under Settings → Your data → Lab key → A lab back without its key, so the lab files and copies it locked open there again.
Troubleshooting
BioManager won't start: the lab's database is an empty file
The file is 0 bytes, so its records are not in it. Put back a backup as above, or delete the empty file to start a new lab.