<db-name> is already in use by a different database

As part of the on-going effort to make resolutions posted on our forums searchable I’d like to share a recent Datomic slack conversation on the error " is already in use by a different database" when restoring a DB.

When restoring a DB you can restore into a URI that already points to a different point-in-time for the same database. But you cannot “fork” your DB. If you restore a DB with the same name into storage, make changes to the restored DB and the original source DB then backup and restore the original source DB to the same storage you’ll run into this error.

You cannot restore into a URI that points to a different database. Restore can rename databases. However, you cannot restore a single database to two different URIs within the same storage.