Hello, I have been trying to backup my appwrite database. I refer to the instruction in https://discord.com/channels/564160730845151244/1086299526802968627/1086316803891937485
I am currently stuck at
root@appwrite:/home/ubuntu/appwrite# /usr/local/bin/docker-compose -f /home/ubuntu/appwrite/docker-compose.yml exec mariadb sh -c 'exec mysqldump --all-databases --add-drop-database -u"$MYSQL_USER" -p"$MYSQL_PASSWORD"' > ./backup/dump.sql
bash: /usr/local/bin/docker-compose: No such file or directory
It does not seem to be able to detect my docker-compose.
root@appwrite:/home/ubuntu/appwrite# docker-compose --version
bash: docker-compose: command not found
root@appwrite:/home/ubuntu/appwrite# docker compose version
Docker Compose version v2.15.1
I have docker compose v2 installed. but i can't use docker compose command with hyphen. anyone has any idea?
docker-compose
is the old v1 compose. You should be using docker compose
oh. Ok, let me rerun the script
thanks so much Steven
everything works fine! thanks a lot.
[SOLVED] Run mysqldump with docker-compose
Recommended threads
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Migrate from cloud to localhost
Hello everyone. I need to migrate my test project from cloud to localhost, however it seems that this is possible only if a self-hosted appwrite instance it's h...