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
- Create a project via REST API or SDK, mi...
I am currently self-hosting Appwrite in my local machine, deployed using docker script in the website. I also installed `appwrite-cli` through npm. I am trying...
- Attach Dart debugger for locally deploye...
Hello there, I was wondering if it is possible to attach debugger to dart function, that I run locally. It would make development much easier :-). Thank you.
- Firebase app import
I'm **very** new to appwrite and I just set up appwrite with docker and I'm trying to import a Firebase app I have set up but it's erroring and I don't really k...