OC(1)
π
oc rsync β the OC(1) glow-up π
okay so welcome to the OC(1) page for oc rsync, bestie. This is the manual-page moment where we copy files between a local file system and a pod, and weβre gonna keep every single deet intact. no cap. β¨
β¨ NAME β¨
oc rsync β Copy files between a local file system and a pod. π«Ά
πΈ SYNOPSIS πΈ
oc rsync [OPTIONS]
π¦ DESCRIPTION π¦
Copy local files to or from a pod container. π
This command will copy local files to or from a remote container. It only copies the changed files using the rsync command from your OS. To ensure optimum performance, install rsync locally. On UNIX systems, use your package manager. On Windows, install cwRsync from https://www.itefix.net/cwrsync. π
If no container is specified, the first container of the pod is used for the copy. π
The following flags are passed to rsync by default: --archive --no-owner --no-group --omit-dir-times --numeric-ids. periodt. π
π OPTIONS π
--compress=falseβ compress file data during the transfer. π-c,--container=""β Container within the pod. π«Ά--delete=falseβ If true, delete files not present in source. β οΈ--exclude=[]β When specified, exclude files matching pattern. π--include=[]β When specified, include files matching pattern. β¨--no-perms=falseβ If true, do not transfer permissions. π--progress=falseβ If true, show progress during transfer. π₯-q,--quiet=falseβ Suppress non-error messages. π€«--strategy=""β Specify which strategy to use for copy:rsync,rsync-daemon, ortar. π-w,--watch=falseβ Watch directory for changes and resync automatically. π¦
π OPTIONS INHERITED FROM PARENT COMMANDS π
these are the parent-command options, and yes, every single one is invited to the group chat. π
--as=""β Username to impersonate for the operation. User could be a regular user or a service account in a namespace. π«Ά--as-group=[]β Group to impersonate for the operation; this flag can be repeated to specify multiple groups. πΈ--as-uid=""β UID to impersonate for the operation. π--as-user-extra=[]β User extras to impersonate for the operation; this flag can be repeated to specify multiple values for the same key. β¨--cache-dir="/homeless-shelter/.kube/cache"β Default cache directory. πΎ--certificate-authority=""β Path to a cert file for the certificate authority. π--client-certificate=""β Path to a client certificate file for TLS. π--client-key=""β Path to a client key file for TLS. π--cluster=""β The name of the kubeconfig cluster to use. βοΈ--context=""β The name of the kubeconfig context to use. π§--disable-compression=falseβ If true, opt-out of response compression for all requests to the server. π«--insecure-skip-tls-verify=falseβ If true, the serverβs certificate will not be checked for validity. This will make your HTTPS connections insecure. β οΈ seriously, bestie, itβs giving risky.--kubeconfig=""β Path to the kubeconfig file to use for CLI requests. π--kuberc=""β Path to the kuberc file to use for preferences. This can be disabled by exportingKUBECTL_KUBERC=falsefeature gate or turning off the featureKUBERC=off. π§--match-server-version=falseβ Require server version to match client version. πͺ-n,--namespace=""β If present, the namespace scope for this CLI request. π·οΈ--profile="none"β Name of profile to capture. One of(none|cpu|heap|goroutine|threadcreate|block|mutex). π--profile-output="profile.pprof"β Name of the file to write the profile to. π--request-timeout="0"β The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g.1s,2m,3h). A value of zero means donβt timeout requests. β³-s,--server=""β The address and port of the Kubernetes API server. π--tls-server-name=""β Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used. π‘οΈ--token=""β Bearer token for authentication to the API server. ποΈ--user=""β The name of the kubeconfig user to use. π€--warnings-as-errors=falseβ Treat warnings received from the server as errors and exit with a non-zero exit code. π
π EXAMPLE π
# Synchronize a local directory with a pod directory
oc rsync ./local/dir/ POD:/remote/dir
# Synchronize a pod directory with a local directory
oc rsync POD:/remote/dir/ ./local/dir
π¦ SEE ALSO π¦
oc(1), π
πΈ HISTORY πΈ
June 2016, Ported from the Kubernetes man-doc generator. π
bestie, thatβs the whole page β brought to you by Openshift, from the Openshift CLI User Manuals, dated June 2016. π β¨
π¦ where this page comes from
- nixpkgs unstable: openshift 4.22.0-202605222050
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms