ReinerNippes / nextcloud_on_docker

Run Nextcloud in Docker Container on various Linux Hosts
MIT License
203 stars 48 forks source link

Mysql command to backup db doesn't work. #39

Closed ghost closed 4 years ago

ghost commented 4 years ago

The following command:

sudo docker exec nextcloud-db mysqldump --single-transaction -h localhost -u root -p password_here nextcloud > {{nextcloud_dir}}database-dump/db_dump_mysql_nextcloud.sql

within /usr/local/bin/backup_nextcloud.sh doesn't seem to be working. Neither the secret generated /nextcloudir/secrets in mysql_root_secret or database_user_secret work.

ghost commented 4 years ago

Fixed. My usage was incorrect.