Richard Ev
Richard Ev

Reputation: 54137

Back/restore single environment in Octopus Deploy

We've been experimenting with Octopus Deploy on a development PC and now want to transfer the environment we've created onto our main Octopus Deploy server (which is used by other teams and already has a few environment set up on it).

So we would like to backup/restore this one environment. However, it looks like Octopus only allows you to backup/restore the entire database.

Is it possible to move a single environment from one Octopus server to another using backup/restore or another means?

Upvotes: 2

Views: 828

Answers (2)

Paul Stovell
Paul Stovell

Reputation: 32745

There's currently no way to backup/restore just part of the database - you'd need to restore a full backup, and then delete the information you don't need.

Octopus 2.0 (which is now a public beta) has a comprehensive REST API so it would be possible to use that API to fetch a subset of information and import it to your new Octopus server.

Upvotes: 1

Dejan Vasic
Dejan Vasic

Reputation: 692

What worked for me was simply doing the following in order:

  • Shutting down Octopus service so that no transaction going through.
  • Copy the raven database (usually stored in Program Files\Data) to your new server.
  • Install the new Octopus server and during the setup, in the Storage Tab, specify the location of your data location copied in the second step above.

The Octopus developer, Paul, mentions the great thing about RavenDB is the installation. It requires no services running like SQL. It's just a copy paste of the data itself and great for installation and portability.

Upvotes: 1

Related Questions