Copies files or directories from the current system to multiple hosts in the fabric. When copying large directory trees, use the -t option to improve performance. This option tars and compresses the tree, transfers the resulting compressed tarball to each node, and untars it on each node.
Use this tool for copying data files, operating system files, or applications to all the hosts (or a subset of hosts) within the fabric.
- This tool can only copy from this system to a group of systems in the cluster. To copy from hosts in the cluster to this host, use ethuploadall.
- user@ style syntax cannot be used when specifying filenames.
ethscpall [-p] [-r] [-f hostfile] [-h 'hosts'] [-u user]
source_file ... dest_file
ethscpall [-t] [-p] [-f hostfile] [-h 'hosts'] [-u user]
[ source_dir [ dest_dir]]
Produces full help text.
Performs copy in parallel on all hosts.
Performs recursive copy of directories.
Performs optimized recursive copy of directories using tar. dest_dir is optional. If dest_dir is not specified, it defaults to the current directory name. If both source_dir and dest_dir are omitted, they both default to the current directory name.
- -h hosts
Specifies the list of hosts to copy to.
- -f hostfile
Specifies the file with hosts in cluster. Default is /etc/eth-tools/hosts file.
- -u user
Specifies the user to perform copy to. Default is current user code.
Specifies the file or list of source files to copy.
Specifies the name of the source directory to copy. If omitted. is used.
- dest_file or dest_dir
Specifies the name of the destination file or directory to copy to. If more than one source file, this must be a directory. If omitted current directory name is used.
# efficiently copy an entire directory tree
ethscpall -t -p /usr/src/eth/mpi_apps /usr/src/eth/mpi_apps
# copy a group of files
ethscpall a b c /root/tools/
# copy to an explitly specified set of hosts
ethscpall -h 'arwen elrond' a b c /root/tools
HOSTS='arwen elrond' ethscpall a b c /root/tools
The following environment variables are also used by this command:
List of hosts; used if -h option not supplied.
File containing list of hosts; used in absence of -f and -h.
When the -p option is used, maximum concurrent operations are performed.