Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possebility of corrupted mysqldump when using docker #4682

Open
1 of 12 tasks
TheOneRing opened this issue Jan 27, 2022 · 0 comments
Open
1 of 12 tasks

Possebility of corrupted mysqldump when using docker #4682

TheOneRing opened this issue Jan 27, 2022 · 0 comments

Comments

@TheOneRing
Copy link
Member

TheOneRing commented Jan 27, 2022

WHAT Needs to be Documented?

When following the instructions to create a mysqldump with docker

docker-compose exec mariadb \
     /usr/bin/mysqldump -u root --password=owncloud \
     owncloud > owncloud_$(date +%Y%m%d).sql

The process appears to be stuck and when it eventually finishes the dump is corrupted,
namely only the table definitions made it to the dump, not the data.

Adding -T to the exec however solves that issue

docker-compose exec -T mariadb \
     /usr/bin/mysqldump -u root --password=owncloud \
     owncloud > owncloud_$(date +%Y%m%d).sql

https://docs.docker.com/compose/reference/exec/

Dumping in a non interactive shell works without a problem.

WHERE Does This Need To Be Documented (Link)?

https://doc.owncloud.com/server/next/admin_manual/installation/docker/

WHY Should This Change Be Made?

Working backups are kind of important

(Optional) What Type Of Content Change Is This?

  • New Content Addition
  • Old Content Deprecation
  • Existing Content Simplification
  • Bug Fix to Existing Content

(Optional) Which Manual Does This Relate To?

  • Admin Manual
  • Developer Manual
  • User Manual
  • Android
  • iOS
  • Branded Clients
  • Desktop Client
  • Other
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant