leibylucw / dock-press

A project to Dockerize a WordPress site
0 stars 0 forks source link

Generate dump file in DB container and copy to filesystem #27

Closed leibylucw closed 1 month ago

leibylucw commented 1 month ago

The Python code that exports the DB dump file to the local filesystem streams it over stdout and pipes it to a file. To avoid character encoding and line ending issues, it should be generated in the container, then copied to the host filesystem.