Discourse Productive Instance 1:1 Migrate to Test Server

Hello, I have taken over the admin position in a community and am currently facing the challenge of bringing the forum back up to date.

It has not been updated for a long time because the Calendar plugin caused issues.

I have rented another server and would like to first set up a 1:1 copy of the production environment there.

Since I am using an older version, I am not yet sure how to do this, as during a fresh setup, only the latest versions are pulled.

We are running on:
Discourse 3.2.0.beta1-dev (19567daeb9)

with the following plugins and versions:

and PG 13.

I would like to first get a 1:1 copy running, secure it via a full backup, and then determine how to start the update process without destroying the instance. Once I have found a working method, the production instance will also be updated.

The current difficulty is:
How do I first create a 1:1 copy of my old version, including the old PG database and old plugins?

As a beginner, I am very grateful for any hints and/or links.

Thank you very much for your time and best regards,
Richarde

1 Like

Hi!

This may be a good starting point:

1 Like

Thank you for your help!

As I understand it, the backup does not include any software, so plugins and their software versions, nor does it include Discourse itself with its version. Therefore, it is not suitable for the above issue.

Fortunately, the plugin that was preventing our update is now compatible again with the current version of Discourse, so I was able to set up a new server with the latest version and restore our backup there.

Nevertheless, it could be very useful for some (including our community during the time when the plugin was not compatible with the software) to know how to set up a test instance as a 1:1 copy to test further steps in a safe environment without affecting production.

1 Like

If you’re using a provider that can clone your whole VPS, that might be a shortcut to explore:

Also, this process for a site move using rsync would appear to bring the entire site over 1:1…
Move a Discourse site to another VPS with rsync - Community wiki / Sysadmins
[EDIT: not 1:1 if you do the prescribed rebuild. Would need to start up without rebuild.)

The basic process looks pretty straightforward, though there are many comments offering modified approaches and command parameters. I haven’t done it myself. If I had to, I suppose I’d start with the basics and see how it goes. Several possible gotchas are discussed in the comments.

But that involves rebuilding the forum, no?

Then again, it just might work:

(While I’m at it, how is this topic different from the linked one?)

The quoted one from myself is what I tried, and didn´t Work.
Making a 1:1 with a Snap via the Provider, disabling https.

I tried a lot also changing Conf. via rails but couldn´t get it to work, so the Way via snap isn´t working for me at all. So I´m asking here, for a way how to do it. (even if i solved my Problem already, this might be helpful in the future)

Yes, which again leads to updates, why this shouldn´t work.

Thanks guys

Oof, yes, good catch. I must have been up too late. Pfaffman’s idea is interesting, though.

1 Like

What problem do you think you’re solving by creating another site using the same container?

I guess if that’s what you want to do then the thing to do is to build the image and launch it behind a reverse proxy for both sites.

Also, there some new images that aren’t supported yet that can be launched directly, so you might look for topics about those.