Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

mysqldump: This can be used to backup mariadb running in a docker container : 

docker

...

exec

...

<mariadb_container_name>

...

mysqldump

...

[--user

...

<db

...

username>]

...

[--password=

...

<db

...

password>]

...

<db

...

name>

...

>

...

/<backup

...

path>/db.dump
It can also be run inside a container:

mysqldump --all-databases --add-drop-database --compact --routines --host=<hostname> --port=<port> --user=<db user> --password=<db password> --log-error=/tmp/<filename>.err > /tmp/<dmp file name>.dmp