Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Backup PROD database to DEV or TEST

    Scheduled Pinned Locked Moved Support
    buildmasterdatabases
    3 Posts 1 Posters 6 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      I would like to automate the step of backing up our Production database and restoring it to my Test database so I can test running the change scripts over production data. There is no concern for prod data in a test environment.

      However, I can't figure out how to connect to the Prod database from the TEST or DEV environment deployment plans without creating another connection. Is there a better way to do this?

      Thanks,
      Matthew

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        Hi Matthew,

        This is a limitation, but it's on our list to address in the next release; as a workaround, you can create the action group in your PROD environment, then drag it to the TEST or DEV groups. It's a hack, but should be fixed soon.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Thanks for the confirmation. I just tested this technique, and it worked really well, actually. I'm going to use the following naming convention:

          DEV SQL Server (the actual DEV database)
          TEST to DEV SQL Server (the TEST database available to the DEV BuildMaster environment)
          PROD to DEV SQL Server (the PROD database available to the DEV BuildMaster environment)

          I was concerned that BuildMaster would want to re-initialize the database, but it didn't. In fact, during the next build in DEV, BuildMaster correctly backed up my PROD db and restored to DEV and then determined that my SQL Change Script had never been run (since the BuildMaster execution table is also restored). This is how I expect and want it to behave.

          Thanks again for the VERY FAST response!
          Matthew

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation