Complex kubectl command -> copy files from kubernetes pod's PVC over a specific date Complex kubectl command -> copy files from kubernetes pod's PVC over a specific date kubernetes kubernetes

Complex kubectl command -> copy files from kubernetes pod's PVC over a specific date


For now I am running it with a compromise that works.

kubectl exec -n <namespace> <pod_name> -- find /foo -type f -newermt '4/1/2021 0:00:00' -exec tar -cf - {} + | tar xf - -C ./bar --strip-components=3

This how ever takes longer to run since I look at every file, and not just the top level folders.