File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -36,21 +36,14 @@ use with the `oc rsync` command.
3636+
3737[source,terminal]
3838----
39- $ oc rsync <local-dir> <pod-name>:/<remote-dir>
39+ $ oc rsync <local-dir> <pod-name>:/<remote-dir> -c <container-name>
4040----
4141+
4242For example:
4343+
4444[source,terminal]
4545----
46- $ oc rsync /home/user/source devpod1234:/src
47- ----
48- +
49- .Example output
50- [source,terminal]
51- ----
52- WARNING: cannot use rsync: rsync not available in container
53- status.txt
46+ $ oc rsync /home/user/source devpod1234:/src -c user-container
5447----
5548
5649* To copy a pod directory to a local directory:
@@ -64,6 +57,4 @@ $ oc rsync devpod1234:/src /home/user/source
6457[source,terminal]
6558----
6659$ oc rsync devpod1234:/src/status.txt /home/user/
67- WARNING: cannot use rsync: rsync not available in container
68- status.txt
6960----
You can’t perform that action at this time.
0 commit comments