Skip to content

Commit 20891b2

Browse files
authored
Merge pull request #38276 from mburke5678/GH#32985
GH#32985: Fix rsync examples
2 parents 3816d08 + 52b7eca commit 20891b2

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

modules/nodes-containers-copying-files-procedure.adoc

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff 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
+
4242
For 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
----

0 commit comments

Comments
 (0)