Sauvegarde Prod -> Snap -> Build Test -> Changer l'adresse

Hallo Zusammen,
ich breche mir gerade trotz KI einen ab mein Ziel umzusetzen.

Unser Discourse läuft auf Hetzner. Adresse könnte forum.thisIsMyDomain.com sein.
Dort mache ich ein Backup und aus dem Backup ein Snap.

Ich habe ein weiteren Hetzner Server für Testzwecke, in diesen mache ich nun ein ReBuild aus dem Snap. Der Server hat logischerweise eine andere IP und Adresse, zum Bsp. dev.thisIsMyDomain.com

Wie kann ich nun die Dev/Testinstanz zum laufen bringen?

nano /var/discourse/containers/app.yml

DISCOURSE_HOSTNAME: anpassen auf neuen Namen

Das scheint nicht auszureichen.
Ich möchte aber auch auf keinen Fall ein Rebuild durchführen, sondern im ersten Schritt eine 1:1 Kopie zum laufen bringen.

Hat jemand damit Erfahrungen gesammelt und kann mir noch ein Tipp geben wie es weiter geht? Vielen Dank euch für eure Zeit.

Richarde

Hi there, did you follow this guide to restoring from backups?

(Also see Restore a Discourse backup manually for development but I don’t think that’s relevant?)

Danke für Ihre Antwort.

nein, ich habe es mit meinem Weg versucht und suche für diesen Weg die Lösung.

1 « J'aime »

You can try changing the hostname and doing a ‘./launcher rebuild app’`.

But since the hostname has changed, a bunch of stuff in the database also needs to be changed. The easiest way is to restore a backup. There once was a topic about how to change the hostname; I don’t see it, but I might not have looked hard enough. Or maybe it wwas deleted because it’s much easier and more reliable to restore the backup.

You might be able to do a `./launcher destroy app;./launcher start app` and then restore the backup from the command line.

What I would recommend is Move a Discourse site to another VPS with rsync and Set up a staging server

Then what you’d do is push your docker image somewhere, and then use ./launcher start-cmd app to see how to start it. So you’ll need to figure out enough about docker to push the image to a private repo and start it up and then restore the backup.