``` kubectl cp pod-0:/root/Access_user_details.tar.gz Access_user_details.tar.g . . .

Saba 9t8t3:

kubectl cp pod-0:/root/Access_user_details.tar.gz Access_user_details.tar.gz                                                                                                      
tar: Removing leading `/' from member names
error: unexpected EOF

unnivkn:
Hi @Saba 9t8t3 please try to follow this: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#cp

unnivkn:
> !!!Important Note!!! # Requires that the ‘tar’ binary is present in your container # image. If ‘tar’ is not present, ‘kubectl cp’ will fail. # # For advanced use cases, such as symlinks, wildcard expansion or # file mode preservation, consider using ‘kubectl exec’. # Copy /tmp/foo local file to /tmp/bar in a remote pod in namespace

tar cf - /tmp/foo | kubectl exec -i -n <some-namespace> <some-pod> -- tar xf - -C /tmp/bar

Saba 9t8t3:
thanks