This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.2.5.4.9. rsync
将目录的内容复制到正在运行的 pod 容器或从容器中复制。rsync
命令只复制您的操作系统中已更改的文件。
示例:将本地目录中的文件与 pod 目录同步
oc rsync ~/mydirectory/ python-1-mz2rf:/opt/app-root/src/
$ oc rsync ~/mydirectory/ python-1-mz2rf:/opt/app-root/src/