Back

Migrate Appwrite from VPS to another.

  • 0
  • Self Hosted
David
10 Jul, 2023, 12:42

I installed appwrite on a droplet and also installed appwrite on GCP Compute Engine.

I want to migrate the data in the Droplet over to the Compute Engine.

I followed the instructions on backup and restore topic but didn't succeed?

Any help is highly appreciated.

TL;DR
User needs help migrating Appwrite from a VPS to another. They are asking for guidance on how to view users in the database and verify if information has been updated. They mention running a command that could potentially reset the database. They also mention signing up and running a restore script, but the data is not appearing in the new instance. They followed the backup and restore instructions but didn't succeed. Solution: Provide instructions on how to properly migrate Appwrite data from one server to another.
Binyamin
10 Jul, 2023, 12:43

What was the issue you've faced

David
10 Jul, 2023, 12:53

I don't see the data in the new instance after running the restoration script

Binyamin
10 Jul, 2023, 12:57

Which script you've used?

Binyamin
10 Jul, 2023, 13:06

So when you ran the restore.sh you already had an active Appwrite in the new machine?

David
10 Jul, 2023, 13:20

No. It was at the onboarding stage

David
10 Jul, 2023, 13:20

But I had signed up already

Binyamin
10 Jul, 2023, 13:23

This command though, should reset your database

TypeScript
docker compose exec -T mariadb sh -c 'exec mysql -u"$MYSQL_USER" -p"$MYSQL_PASSWORD"' < ./backup/dump.sql
Binyamin
10 Jul, 2023, 13:23

Can you verifiy that the information in the database has been updated?

David
10 Jul, 2023, 13:32

Let me run this and let you know

David
10 Jul, 2023, 13:45
David
10 Jul, 2023, 13:49

Do you know the command I can run to see the users in my database?

Binyamin
10 Jul, 2023, 14:10

The easiest way would be to login to your Appwrite database using this gist https://gist.github.com/byawitz/885510a4d9789e97424337e9472276d7

David
10 Jul, 2023, 16:56

I hoped to create everything manually as learn more about this for future tasks

David
10 Jul, 2023, 16:56

Thank you so much Binyamin <:appwriteparty:946072712915341333>

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more