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.31.9. 고급 Rsync 기능
oc rsync 명령은 표준 rsync보다 적은 수의 명령줄 옵션을 표시합니다. oc (예: rsync --exclude-from=FILE 옵션)에서 사용할 수 없는 표준 rsync 명령줄 옵션을 사용하려는 경우 다음과 같이 표준 rsync 's --rsh (-e) 옵션 또는 RSYNC_RSH 환경 변수를 해결 방법으로 사용할 수 있습니다.
rsync --rsh='oc rsh' --exclude-from=FILE SRC POD:DEST
$ rsync --rsh='oc rsh' --exclude-from=FILE SRC POD:DEST
또는 다음을 수행합니다.
export RSYNC_RSH='oc rsh' rsync --exclude-from=FILE SRC POD:DEST
$ export RSYNC_RSH='oc rsh'
$ rsync --exclude-from=FILE SRC POD:DEST
위의 두 가지 예 모두 oc rsh를 원격 쉘 프로그램으로 사용하여 원격 Pod에 연결할 수 있도록 표준 rsync를 구성하고 oc rsync를 실행하는 대신 사용할 수 있습니다.