opascpall(8)

πŸ“¦
version 10.14.4.0.20 Β· 2 versions
, in centos-stream 9, opensuse-leap 16.0

πŸ¦‹ opascpall(8) β€” IFSFFCLIRG (Man Page), but make it group chat πŸ¦‹

πŸ’– NAME πŸ’–

Okay so listen, bestie: opascpall is the Linux tool that copies files or directories from the current system to multiple hosts in the fabric. No cap. When copying large directory trees, use the -t option to improve performance β€” it tars and compresses the tree, transfers the resulting compressed tarball to each node, and untars it on each node. It’s giving efficient, honestly. ✨

Use this tool for copying data files, operating system files, or applications to all the hosts (or a subset of hosts) within the fabric. Main character copy energy. πŸ’…

NOTE: 🚨 - 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 opauploadall. - user@ style syntax cannot be used when specifying filenames.

✨ Syntax ✨

Two moods, both iconic:

opascpall [-p] [-r] [-f  hostfile] [-h 'hosts'] [-u  user]
source_file ... dest_file

opascpall [-t] [-p] [-f  hostfile] [-h 'hosts'] [-u  user]
[ source_dir [ dest_dir]]

πŸ‘‘ Options πŸ‘‘

  • --help β€” produces full help text. πŸ’–
  • -p β€” performs copy in parallel on all hosts. Parallel bestie era. 🫢
  • -r β€” performs recursive copy of directories. Directory tree, but recursive. 🌳
  • -t β€” 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. This is the β€œlarge directory trees” slay option. πŸ”₯
  • -h hosts β€” specifies the list of hosts to copy to. Your chosen squad. πŸ‘―
  • -f hostfile β€” specifies the file with hosts in cluster. Default is /etc/opa/hosts file. πŸ—‚οΈ
  • -u user β€” specifies the user to perform copy to. Default is current user code. (Yes, β€œcode” β€” we keep the receipts. πŸ’…)
  • source_file β€” specifies the a file or list of source files to copy. Keeping the original β€œthe a” energy, no notes. 😭
  • source_dir β€” specifies the name of the source directory to copy. The original line says: If omitted. is used. 🀨 (yes, we’re keeping that exact energy).
  • 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. 🎯

🌈 Example 🌈

Here are the copy-paste moments:

# efficiently copy an entire directory tree

opascpall -t -p /usr/src/opa/mpi_apps /usr/src/opa/mpi_apps

# copy a group of files

opascpall a b c /root/tools/

# copy to an explitly specified set of hosts

opascpall -h 'arwen elrond' a b c /root/tools

HOSTS='arwen elrond' opascpall a b c /root/tools

πŸ“ Environment Variables πŸ“

The following environment variables are also used by this command:

  • HOSTS β€” list of hosts; used if -h option not supplied. 🌟
  • HOSTS_FILE β€” file containing list of hosts; used in absence of -f and -h. πŸ—‚οΈ
  • FF_MAX_PARALLEL β€” when the -p option is used, maximum concurrent operations are performed. Parallel limit, periodt. ⚑

Alright bestie, that’s the whole page. πŸ’‹ Copyright(C) 2015-2019 Intel Corporation Β· opascpall(8) Β· IFSFFCLIRG (Man Page) energy β€” footer folded, vibe intact. Mwah. πŸ’–

πŸ“¦ where this page comes from