opadownloadall(8)

πŸ’… opadownloadall πŸ’…

okay bestie, welcome to the opadownloadall page from the IFSFFCLIRG man set β€” yes she's a Linux girlie and yes she's iconic 🫢

🌸 NAME 🌸

opadownloadall

(Linux) Copies one or more files to a group of hosts from a system. and the reason she's like this is that the file contents she's copying might be different for every single host, so this system keeps a separate directory of source files for each host. no cap. πŸŽ€

she also pairs so well with opauploadall β€” like, you can upload a host-specific config file, edit it for each host, and then download the new version to all the hosts. it's giving glow-up pipeline ✨

NOTE: opadownloadall can only copy from this system to a group of hosts in the cluster. If you wanna go the other direction β€” copying files from hosts in the cluster to this host β€” you use opauploadall. different tool, different vibe, know the difference bestie πŸ’€

✨ Syntax ✨

opadownloadall [-rp] [-f  hostfile] [-d  download_dir] [-h 'HOSTS']
[-u  user] source_file ...  dest_file

πŸ‘‘ Options πŸ‘‘

  • --help β€” Produces full help text. she's literally just here to explain herself πŸ’…
  • -r β€” Performs recursive download of directories. directories inside directories? she ate πŸ“
  • -p β€” Performs copy in parallel on all hosts. main character energy, everything at once πŸ”₯
  • -f hostfile β€” Specifies the file with hosts in cluster. Default is /etc/opa/hosts.
  • -d download_dir β€” Specifies the directory to download files from. Default is downloads. If it's not specified, the environment variable DOWNLOADS_DIR is used. And if that isn't exported either? default it is, bestie.
  • -h HOSTS β€” Specifies the list of hosts to download files to.
  • -u user β€” Specifies the user to perform the copy. Default is the current user code.
NOTE: The user@ style syntax cannot be used in the arguments to opadownloadall. don't try it, she will not understand you 😭
  • source_file β€” Specifies the list of source files to copy from the system.

The option source_file is relative to download_dir/hostname. A local directory within download_dir/ must exist for each host being downloaded to. Each downloaded file is copied from download_dir/hostname/source_file. πŸ¦‹

  • dest_file β€” Specifies the name of the file or directory on the destination hosts to copy to.

If more than one source file is specified, dest_file is treated as a directory name. The given directory must already exist on the destination host. The copy fails for hosts where the directory does not exist. so like… make the directory first, bestie, fr fr πŸ™ˆ


🌈 Example 🌈

opadownloadall -h 'arwen elrond' irqbalance vncservers /etc

# Copies two files to 2 hosts
opadownloadall -p irqbalance vncservers /etc

# Copies two files to all hosts

look at her go πŸ’–


🧚 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, the maximum concurrent operations are performed.
  • DOWNLOADS_DIR β€” Directory to download from, used in absence of -d.

and that's the whole page, periodt πŸ’œ Copyright(C) 2015-2019 Intel Corporation, and this lil download-queen landed in the IFSFFCLIRG (Man Page) section β€” k bye bestie, go copy some files responsibly πŸŽ€βœ¨