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
で利用できない標準の rsync
コマンドラインオプションを使用する場合 (--exclude-from=FILE
オプションなど)、以下のように標準の rsync
の --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
上記の例のいずれも標準の rsync
をリモートシェルプログラムとして oc rsh
を使用するように設定して リモート Pod に接続できるようにします。これらは oc rsync
を実行する代替方法となります。