Back up and restore
These commands are for a copy of OttoTester you installed yourself with the install command. They run from your install folder: ottotester on macOS and Linux, ottotester.ps1 on Windows.
Make a backup
Section titled “Make a backup”On macOS and Linux:
./ottotester backupOn Windows:
.\ottotester.ps1 backupThe last line says where the backup went and how big it is, for example:
Backup saved: /home/casey/ottotester/backups/ottotester-v1.1.44-20261120-231502.tgz (182.4 MB)The file name says which version made it and when.
While the backup runs, OttoTester is paused, so nothing changes during the copy. It carries on by itself afterwards. Pick a time when no test is running: a test that is paused for long can time out.
If there isn’t enough free space for the backup, nothing is written, and the message says how much space it needs and how much is free.
What a backup holds
Section titled “What a backup holds”One file holds everything a restore needs:
- the database, with every test, run and upload
- your saved files: test repos, run reports, traces and uploaded test data (the
datafolder) - your settings (
.env) - the version’s setup file (
docker-compose.yml)
Keep the file somewhere safe. It holds your install’s keys, in .env. Only the user who made it can open it.
If your install uses a database of its own (MONGODB_URI or MONGODB_BI_URI points somewhere other than the built-in one), the backup holds everything except that database. Back that database up where it lives.
Restore from a backup
Section titled “Restore from a backup”To see your backups, newest first:
./ottotester restoreTo put one back, give its path:
./ottotester restore /home/casey/ottotester/backups/ottotester-v1.1.44-20261120-231502.tgzRestore first checks the whole file. A file that isn’t a backup, or is damaged, changes nothing. Then it says which version and time the backup is from, and asks you to type restore to go ahead. Add --yes to skip the question.
A backup holds .env, and with it the database’s password, MONGODB_PASSWORD. A restore puts back the password that goes with the backup’s data. If the backup is from before your install had a password, the restored install has none again, and the next ./ottotester update adds one.
A restore replaces everything OttoTester has now with what the backup has. Anything saved after the backup was made is gone. Before it replaces anything, it backs up what is there now, so you can go back with another restore. Then it starts the version that made the backup.
Updates make a backup themselves
Section titled “Updates make a backup themselves”Most updates can be undone: if the new version doesn’t start, update goes back to the one you had. Some updates change saved data in a way the older version can’t read. For those, update makes a backup first and says where it went. If the new version then doesn’t start, the message gives the exact command to go back:
To go back to v1.1.43, run: ./ottotester restore /home/casey/ottotester/backups/ottotester-v1.1.43-20261120-231502.tgzIf your install uses a database of its own, update stops before such an update, because the backup can’t hold that database. Back it up where it lives, then run the update again with --yes.
Backups stay when you uninstall
Section titled “Backups stay when you uninstall”uninstall keeps the backups folder, and the install folder around it. To get OttoTester back, install it again into the same folder, then run restore.

