dockerappwrite

How can I move my appwrite image alongside all the projects to a seperate computer?


I am new to this whole containarization and backend as a services technologies. But I wanted to give appwrite a shot because it seemed very easy and well suited for a small project I am about to build. The only problem is I donot know that much about docker, and I am a bit unsure if and how will I be able to move the appwrite image instance that is running locally with all the changes that I have made to it (i.e. created projects, existing db documents, functions etc) to production server or any other computers. How might I be able to do this? thanks


Solution

  • If you're looking to move the configuration for your project AND the data, the best thing to do would be to:

    1. Backup your project
    2. Move the backups and the appwrite folder to the new location
    3. Start Appwrite
    4. Restore the backup

    If you only need to migrate the schema for your collections, you can use the Appwrite CLI to create an appwrite.json file of your project and then deploy it to another instance. The CLI can also be used to manage your Appwrite Functions too.

    References:

    1. YouTube Video on Backing Up and Restoring
    2. Docs on Backups
    3. Docs on Appwrite CLI