Skip to content

Instantly share code, notes, and snippets.

@reynoldsm88
Created March 19, 2019 13:45
Show Gist options
  • Save reynoldsm88/f32b682ecaac7d5a92e5becad4e2884d to your computer and use it in GitHub Desktop.
Save reynoldsm88/f32b682ecaac7d5a92e5becad4e2884d to your computer and use it in GitHub Desktop.
POD=$(oc get pod | grep <xyz | awk '{print $1}'
oc set volume <DC> --add --claim-name=<name> --type pvc --claim-size=1G --mount-path /remote/data
oc rollout latest <DC>
oc rsync /local/data:$POD/remote/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment