Data recovery and importing large datasets to wp-content/uploads
I had a situation a few months ago where I had to pull data directly from a Persistent Volume created by this chart because of an issue with my hosting provider. The WP container is already doing too much and I needed a quick solution.
Here's a blog post I wrote should someone find they need to download their uploads content and then re-upload it again in a new cluster: https://vhs.codeberg.page/post/recover-files-kubernetes-persistent-volume/.
The tutorial is written as a disaster recovery scenario but works for both uploads and downloads, as described in the Bonus section at the end. It also handles large files and thousands of small ones, with resumability, which isn't something kubectl cp
was never designed to handle as illustrated by this 4 year-old bug in Kubernetes.