Export - Import (Production to Staging)

L Younkins asked on January 30, 2023 21:56

Hello. We have a staging server, and a production server, running Kentico SP12. We edit pages in staging and then push to production. Lately, our staging copy seems to be having problems with our templates reverting to previous copies, and webparts disappearing from pages at random.

It seems like it would be a good idea to refresh our staging instance with a copy of production, which seems stable. What is the best way to do this? If I export a copy of the production instance, can I import it into the staging instance? Do I export the site or only global objects?

Recent Answers


Dmitry Bastron answered on January 31, 2023 08:49

Hi,

I'm assuming that by "push" you mean synchronizing content via Kentico Staging module? If so, there is no need to import-export manually, you can connect your Production to Staging and send content and templates back to Staging. Have a look at this article.

0 votesVote for this answer Mark as a Correct answer

L Younkins answered on February 1, 2023 16:27

After connecting the bi-directional staging from production, would I just sync the master page subtree?

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on February 1, 2023 18:00

Yes, this should work ideally. However, I'd do it section by section, rather than everything in one go.

Also, keep in mind that this sync will not delete the pages that were on UAT but weren't on production, so you would need to delete those manually.

0 votesVote for this answer Mark as a Correct answer

L Younkins answered on February 1, 2023 19:11

What about exporting from production and importing into staging? Is that an option? If so, when exporting, do I choose entire site, or global objects only?

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on February 2, 2023 09:47

With export, you cannot select manually content items to sync, there is only one option - sync everything, and if there will be an error during the process of import it will terminate the process and it would be hard to tell what was or wasn't imported.

With content sync tasks there is never gonna be a one-click magic button that will do everything nicely for you. That's why I believe it is easier to do it via Staging rather than an import. With Staging you can sync section by section, and therefore deal with sync errors on a smaller chunk of objects, e.g. page types first, then web parts, then content, then something else depending on what are you using within the system.

0 votesVote for this answer Mark as a Correct answer

L Younkins answered on February 2, 2023 18:13

Got it. Thanks.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.