clusterctl copy
clusterctl copy
clusterctl copy
Copy files to or from many nodes
Synopsis
Copy files to every node of a set, or collect a file from each of them.
By default the sources are local and the destination is on the nodes. With –download the direction is reversed, and because every node would write to the same local path, the destination must be a directory; each file lands in it under the node’s name.
clusterctl copy -n @exe /etc/hosts /etc/hosts clusterctl copy -n exe[1-4] –download /var/log/slurmd.log ./logs/
clusterctl copy [-n NODESET] SOURCE... DESTINATION [flags]Options
--download copy from the nodes instead of to them
-h, --help help for copy
-p, --preserve keep modification times and modes
-R, --recursive copy directories
-r, --root copy as root
-u, --user string remote account to copy asOptions inherited from parent commands
--config strings configuration file or directory to read, repeatable (default: CLUSTERCTL_CONFIG or the search path)
--context string context to act on (default: the current one)
--dry-run report what would be done and change nothing
--fanout int how many hosts to work on at once (default: from the configuration)
--force allow protected hosts to be touched
-n, --nodes string node set to act on, for example 'exe[1-10],@idle'
-o, --output string output format: table, wide, json, yaml, nodeset, name, jsonpath=, jq= (default "table")
--set stringArray override one configuration value as PATH=VALUE, repeatable
-y, --yes answer the confirmation prompts with yesSEE ALSO
- clusterctl - Administer HPC clusters from one binary