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.

Whoever uses that computerDesktop app
  1. Quit BioManager.
  2. Open its data folder: ~/Library/Application Support/Biomanager/ on a Mac, %APPDATA%\Biomanager\ on Windows, ~/.local/share/Biomanager/ on Linux. The lab's database is data/biomanager.db.
  3. Move data/biomanager.db somewhere safe, rather than deleting it.
  4. 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 the uploads folder; put it back from the same backup too.
  5. 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.

Newer changes aren't in a backupEverything entered since the backup was made is not in it. Keep the file you moved aside until you are sure.
A lab set aside with Start a new labBring back a lab set aside (Settings → Lab, the sign-in, or a new lab's first page) lists them; choose one and close BioManager, and it comes back the next time it opens. The lab there now is set aside in its place, so this can be undone the same way. They are kept in 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.

Was this page helpful? No