Skip to content

Instantly share code, notes, and snippets.

@msavy
Last active June 20, 2022 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msavy/fe9e0e7fc1e1eec3ce55c1ee1678e2aa to your computer and use it in GitHub Desktop.
Save msavy/fe9e0e7fc1e1eec3ce55c1ee1678e2aa to your computer and use it in GitHub Desktop.
#!/bin/bash
for PODNAME in podnam1 podname2 podname3
do
echo mkdir "$PODNAME"
echo oc rsync --include='trace.pacp*' --exclude="*" $PODNAME:/opt/jboss/ "$PODNAME/"
echo oc rsync $PODNAME:/tmp/tcpdump-tls-secrets.log "$PODNAME/"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment