Back

[SOLVED] Appwrite Cloud Backups

  • 1
  • Databases
  • Accounts
  • Storage
  • Cloud
  • Users
kamal.panara
2 Jan, 2024, 06:37

Okay then i guess I can’t take backup with Appwrite cloud

TL;DR
The user is discussing the issue of cloud backups for Appwrite. They mention that currently, project level backups are not supported, only backups for the entire instance. One suggestion is to run an automated migration daily to create backups at the project level. Another suggestion is to use the migrations API, although it seems to be undocumented and only available on the console. The user also mentions the possibility of using web hooks to keep a separate copy of the database on another private instance. Another user suggests using a script to do backups and mentions a tutorial on YouTube. Lastly, the user asks if it is possible to take a backup with Appwrite cloud,
kamal.panara
2 Jan, 2024, 06:38

But I can with self hosted by taking backup of my VPS instance and then I can restore it from that ?

D5
2 Jan, 2024, 11:38

You will need to run a script to do the backup. There is a tutorial on Youtube

kamal.panara
2 Jan, 2024, 11:38

Can you please share link 🔗?

D5
2 Jan, 2024, 11:39

Looks old, but seems it still works. Sincerely I din't have tried it yet, but will try today if possible prior to upgrading to 1.4

D5
2 Jan, 2024, 11:40

I want to have 1.4 due to migrations

D5
2 Jan, 2024, 11:41

So I can have a replica as backup. I will probably make a script for everyone to do automatic backups

D5
2 Jan, 2024, 11:41

With appwrite functions

D5
2 Jan, 2024, 11:41

Basically an scheduled "migration"

D5
2 Jan, 2024, 11:42

Main issue is that migrations API seems not to be documented and only available for console

kamal.panara
2 Jan, 2024, 11:45

Or I can use web hooks to keep the separate copy of database of specific project on other private instance?

kamal.panara
2 Jan, 2024, 11:47

Like 2 Appwrite instances 1 use publicly exposed and used by users. And another once on other server keeping copy of live data of the same project and I can backup the main both Appwrite instances as per this video.

kamal.panara
2 Jan, 2024, 11:48

I don’t know what I’m saying 😂

D5
2 Jan, 2024, 12:42

You can do that with migrations API

ideclon
2 Jan, 2024, 12:57

Huh - I thought there was an appwrite migrations command on the CLI, but checking just now, it looks like I was wrong

ideclon
2 Jan, 2024, 12:58

The video linked is about backing up your Appwrite server. You are left with a backup.zip file you can keep (I guess rename to each date?) and restore in the future. But again, this can’t be done at a Project level.

ideclon
2 Jan, 2024, 13:00

What you could do is run an automated Migration daily, even to the same server. That way, you’d end up with a bunch of Projects in your Appwrite server, one each day. If you want to “restore” a backup, you’d switch the Project ID in your apps to point to the correct Project.

D5
2 Jan, 2024, 13:01

Yeah, that backups the whole instance and obviously cannot be done in cloud

ideclon
2 Jan, 2024, 13:02

Well, it’s (presumably) pretty much what’s being done in Cloud for their backups. It would just be impossible to restore just one Project from that - you could only roll back the entire instance.

D5
2 Jan, 2024, 13:02

Yes, that's it unfortunately. Hope they add support for project level backups

ideclon
2 Jan, 2024, 13:03

It’s been talked about, but it’s still in the very early planning stages.

ideclon
2 Jan, 2024, 16:15

If your issue has been solved, you can mark this post as closed by adding “[SOLVED]” to the beginning of the title

kamal.panara
3 Jan, 2024, 09:45

Okay

kamal.panara
3 Jan, 2024, 12:25

[SOLVED] Appwrite Cloud Backups

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