Back

Copy and restore single project

  • 0
  • Self Hosted
Łukasz
29 Sep, 2024, 07:41

I have a question about backup and restoring project. I am using the scripts provided in the official Youtube video. I have them configured with CRON so that a copy is created every day at night. The solution seems very good, but in a scenario when the entire Appwrite needs to be restored (for example, a failed update). I am looking for a solution for a different scenario. I already have several projects on my Appwrite server for different clients. I'm looking for the best solution for creating a copy (preferably as automatically as possible) of a single project. It seems to me that this is crucial in order to be able to use Appwrite in production with peace of mind. The scenario I'm assuming is that one of the customers messes up his project very badly and the only option for a quick fix is to restore a copy from 1 day ago. The other projects should remain unchanged. Restoring the state of one client's database should not have any effect on the other projects of other clients. At the moment, the whole process looks like this in my case, I have a second server with Appwrite (dev). On the main server a copy is automatically made every day. At the moment if there was a need to restore a single project (that situation has not happened yet so the considerations are hypothetical) then I would restore a copy of the main server on the development server, and then using the migration tool I would move the single project to the main server. The question is whether the migration will work correctly when trying to import a project from the development server back to the main server when the project is “backwards” i.e. the project I restore from the previous day has fewer records in the database, fewer users, etc. and whether such a project will correctly replace the “damaged” one. Is this approach correct at all. Can't this be solved simpler, faster, more efficiently? Is there any way to create and restore a copy of a single project, this seems to me a very important issue.

TL;DR
Developers wants to backup and restore single projects without affecting other clients on Appwrite server. Current solution involves automatic daily server copies and migration to a development server. Concerns if migration tool can handle restoring a project with fewer records correctly. Asks for a simpler and more efficient solution.
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