Copy files to Openshift Pods

$ oc project myproject
$ oc get pods | grep running
engine-1-4bxfg                     1/1     Running     0          55m

Now that we know the pod name, we can copy files to it.

$ oc rsync /tmp/bar engine-1-4bxfg:/tmp/

Note that using oc rsync, we can only transfer directories. The above will create a bar directory in the /tmp directory on the engine-1-4bxfg pod.


~ /home 🏠 ~ talks 💬 ~ bash ~ craftsmanship ~ db ~ dongxi ~ emacs ~ escenic ~ iam ~ java ~ js ~ language ~ latex ~ ldap ~ life ~ linux ~ llm ~ mac-os-x ~ mt-foo ~ network ~ norsk ~ python ~ quotes ~ running ~ security ~ travel ~ unix ~ various ~ vcs ~ webdesign ~ windows ~ discoveries ~ cv 🧙 ~

Licensed under CC BY Creative Commons License ~ 📡 RSS feed ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@hachyderm.io ~ 🎥 youtube.com/@skybert