Skip to content
Back

Problems following https://appwrite.io/blog/post/how-to-back-up-your-appwrite-data

  • 0
  • 2
  • Self Hosted
  • General
panda_p
14 Oct, 2025, 06:56

To me it is unclear what the author means when he writes "Please note that the Appwrite instance should be shut down". I am using docker. What exactly am I supposed to shut down to avoid "service "mariadb" is not running" or "docker: Error response from daemon: volumes-from specification cannot be an empty string."

TL;DR
To back up data of a MariaDB instance, you can run a mysqldump command without stopping any services. However, for the Volumes in Appwrite, it's suggested to stop the entire stack if possible before creating a backup. If you are encountering issues with the command not running due to an empty string, verify that the appwrite service is running before executing the backup script.
14 Oct, 2025, 07:50

That's for docker volumes, not for MariaDB

14 Oct, 2025, 08:51

I used docker compose stop appwrite which let me at least run the MariaDB part of the backup.

But for the Volumes I am at a loss. Which part of appwrite am I suppoed to stop?

14 Oct, 2025, 08:56

You don't need to stop anything for running:

TypeScript
14 Oct, 2025, 08:57

For the volumes, you should stop the entire stack if possible

14 Oct, 2025, 09:21

Do you mean something like "docker compose stop"? As far as I know, that is not possible. This is the prompt: mkdir -p backup && docker run --rm --volumes-from "$(docker-compose ps -q appwrite)" -v $PWD/backup:/backup ubuntu bash -c "cd /storage/functions && tar cvf /backup/functions.tar ."

The part "docker-compose ps -q appwrite" generates an empty String if appwrite is not running resulting in the prompt not being executed.

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