когда я создал скрипт как
Код: Выделить всё
kubectl exec pod-name -- sh -c 'find /path/to/my/folder/ -mtime -1 -exec tar -cvzf somename.tar.gz'
Код: Выделить всё
kubectl exec pod-name -- sh -c 'find /path/to/my/folder/ -mtime -1 -type f|xargs -r tar cvzf somename.tar.gz
говорит, что tar закончился сигналом 13
Какие исправления мне нужно внести в мой строки сценария, чтобы он мог выполнить мою работу
Код: Выделить всё
I want to get into pod and go to repected folder and collect the files like logs for particular time period in my case for last 24 hours and tar.gz them and copy to my local
Подробнее здесь: https://stackoverflow.com/questions/788 ... x-with-k8s