I know this question asked before and I checked them but still fails.
Pod name : postgresl-7c8b9-qs67z
File in the pod : /home/backup/db
So I want to try to copy "db" file to my local and I tried to commands below, but all of them giving the same error.
kubectl cp default/postgresl-7c8b9-qs67z:/home/backup/db C:\Users\myuser\Desktop\mydb1.dmp
kubectl cp default/postgresl-7c8b9-qs67z:/home/backup/ C:\Users\myuser\Desktop\
kubectl cp postgresl-7c8b9-qs67z:/home/backup/db C:\Users\myuser\Desktop\mydb1.dmp
And the error is :
error: one of src or dest must be a local file specification
How can I do that? Thanks!