Hello all, I am currently self-hosting my appwrite application using docker running on a ubuntu cloud server. I am generally unsure about how to structure a development/testing environment. I want to be able to start something like an emulator environment, where i can test and develope on a "copy" of the production environment. I have tried export/importing the appwrite docker volume tarballs, but import to my local machine either fails or crashes the appwrite server.
Should be noted that im quite new to docker and appwrite, so if anyone have any ideas or experince, it would be much appreciated. Thank you in advance.
Backup and restore You can check this gist https://gist.github.com/stnguyen90/fee636ff652b8ecbf761935b2aa254fb On how to backup and restore a self-hosted Appwrite
Duplicate server
You can duplicate the whole server and have another one as your dev in the cloud.
The downside is you're paying for another server
If you doing so make sure to edit the domain in the .env
file
Virtual box You can check into backup your remote server and restoring it to your local VirtualBox machine (On this topic I'll also recommend you'll check HashiCorp Vagrant).
You can achieve this by using duplicity check thisπ https://help.ubuntu.com/community/DuplicityBackupHowto
Thank you for your answer. Is the idea of backup and restore to create a backup on the server and then export it to my local machine, where i restore it?
Pretty much.
If you have two machines DEV and PROD, you first need to make sure appwrite is installed on both the machines, and it's best to keep them on the same version.
In a scenario when you want to move from a local development to production, you would run the backup script on the DEV machine, and copy over the backup to the PROD machine, where you run the restore script.
https://www.youtube.com/watch?v=lM5yZEPtlvg
This video helped me out with the process, in case you prefer a video over reading. Let me know if you face any issues!
Awesome, i'll take a look π
Everything works fine when i backup/restore on my ubuntu server, but on windows(my local machine) i get the following errors on restore and backup respectively.
Okay, i'll admit i asked GPT since im pretty green concerning all this.. But flipping the paths from using / to \ because of windows file paths, seems to have done the trick. Thank you all for your help.
[SOLVED] Self-hosting appwrite(docker) advice
Recommended threads
- Appwriter Linux Key Bindings
Any tips for configuring appwriter for ubuntu? Actually the keybindings are tightly binded to either windows or mac. Working well on windows but in ubuntu some ...
- Admin Impersonating Clients?
I have a client that needs to use the admin User, to impersonate the Clients in order to debug better the App and the services that they are providing, could yo...
- create project api-rest
Hello good afternoon, I'm developing a project where I need to create a project by apirest, but I'm stuck with this "projects.read" permission, can I change my ...