How To Setup "Reverse" Deployment? (Refresh dev file with production data)

We’ve used OttoDeploy many times to do normal “Dev to Prod” deployments (“Migrate” operation).

Occasionally we do a “Create New Dev File” deployment (“Install/Replace” operation) where we just dump the dev file wholesale and replace it with the current production file.

Now we have a need to do what I consider a “reverse” deployment, where we want to refresh the data in the dev file with fresh data from the production file. I want to think this is doable, but my brain just isn’t putting things together right.

So, given these files:

  • Requirements_v2 (production file—I want the data from here)
  • Requirements_v2_Dev (dev file—I want the schema from here)

How would I set this up?

I have this as an idea, but the SCHEMA and DATA are in the wrong spots:

image

1 Like

Hey Matt,

Check out this guide in the docs. Its a bit more complex since OttoFMS always uses the schema from the source. But that guide should have everything you need to do this!

-Kyle

Oh, excellent! We will try that out.

1 Like

While this of course works, it would be nice if at some point you could bundle this into a new type of deployment. It also need to do this occasionally.

2 Likes