prsync(1)

πŸ“¦ version 2.3.6, in epel 10, epel 9, fedora 43, fedora 44

πŸ’– prsync β€” the parallel file sync bestie πŸ’–

okay so this is prsync(1), from the General Commands Manual, and honestly? she's iconic. she's the group chat member who can clone herself and sync files to like forty hosts at once and not even break a sweat.


✨ NAME ✨

prsync β€” parallel file sync program πŸ¦‹


🌸 SYNOPSIS 🌸

prsync [-vAraz] [-h hosts_file] [-H [user@]host[:port]] [-l user] [-p
par] [-o outdir] [-e errdir] [-t timeout] [-O options] [-x args] [-X
arg] [-S args] local ...  remote

πŸ’… DESCRIPTION πŸ’…

so prsync is literally a program for copying files in parallel to a whole bunch of hosts, and it does it using the popular rsync program. no cap. she's got features like passing a password to ssh, saving output to files, and timing out. main character energy fr fr.


πŸ‘‘ OPTIONS πŸ‘‘

  • -h host_file, --hosts host_file β€” read hosts from the given host_file. lines in the host file look like [user@]host[:port] and can include blank lines and comments (lines beginning with #). if you give multiple host files (aka you use the -h option more than once), then prsync behaves as though these files were concatenated together. and if a host is specified multiple times? prsync will connect the given number of times. she said what she said πŸ’…
  • -H [user@]host[:port], --host [user@]host[:port] β€” add the given host strings to the list of hosts. this option may be given multiple times, and may be used in conjunction with the -h option.
  • -H "[user@]host[:port] [ [user@]host[:port ] ... ]", --host "[user@]host[:port] [ [user@]host[:port ] ... ]" β€” same deal, you can also pass a whole little bundle of host strings in one quoted argument. 🫢
  • -l user, --user user β€” use the given username as the default for any host entries that don't specifically specify a user.
  • -p parallelism, --par parallelism β€” use the given number as the maximum number of concurrent connections. she multitasks, obviously.
  • -t timeout, --timeout timeout β€” make connections time out after the given number of seconds. with a value of 0, prsync will not timeout any connections. (zero means "we wait forever, bestie, we're committed")
  • -o outdir, --outdir outdir β€” save standard output to files in the given directory. filenames are of the form [user@]host[:port][.num] where the user and port are only included for hosts that explicitly specify them. the number is a counter that is incremented each time for hosts that are specified more than once. πŸ“
  • -e errdir, --errdir errdir β€” save standard error to files in the given directory. filenames are of the same form as with the -o option.
  • -x args, --extra-args args β€” passes extra rsync command-line arguments (see the rsync(1) man page for more information about rsync arguments). this option may be specified multiple times. the arguments are processed to split on whitespace, protect text within quotes, and escape with backslashes. to pass arguments without such processing, use the -X option instead.
  • -X arg, --extra-arg arg β€” passes a single rsync command-line argument (see the rsync(1) man page for more information about rsync arguments). unlike the -x option, no processing is performed on the argument, including word splitting. to pass multiple command-line arguments, use the option once for each argument.
  • -O options, --options options β€” SSH options in the format used in the SSH configuration file (see the ssh_config(5) man page for more information). this option may be specified multiple times.
  • -A, --askpass β€” prompt for a password and pass it to ssh. the password may be used for either to unlock a key or for password authentication. the password is transferred in a fairly secure manner (e.g., it will not show up in argument lists).
okay but real talk: be aware that a root user on your system could potentially intercept the password. she's careful, but root is root. 😭
  • -v, --verbose β€” include error messages from rsync with the -i and -e options.
  • -r, --recursive β€” recursively copy directories. down the rabbit hole we go πŸ‡
  • -a, --archive β€” use rsync archive mode (rsync's -a option).
  • -z, --compress β€” use rsync compression.
  • -S args, --ssh-args args β€” passes extra SSH command-line arguments (see the ssh(1) man page for more information about SSH arguments). the given value is appended to the ssh command (rsync's -e option) without any processing.

🌈 TIPS 🌈

the ssh_config file can include an arbitrary number of Host sections. each host entry specifies ssh options which apply only to the given host. Host definitions can even behave like aliases if the HostName option is included. this ssh feature, in combination with pssh host files, provides a tremendous amount of flexibility. it's giving ✨infrastructure✨ ngl.


⭐ EXIT STATUS ⭐

the exit status codes from prsync are as follows:

  1. 0 β€” Success
  2. 1 β€” Miscellaneous error
  3. 2 β€” Syntax or usage error
  4. 3 β€” At least one process was killed by a signal or timed out.
  5. 4 β€” All processes completed, but at least one rsync process reported an error (exit status other than 0).

πŸŽ€ AUTHORS πŸŽ€

written by Brent N. Chun <bnc@theether.org> and Andrew McNabb <amcnabb@mcnabbs.org>.

https://github.com/lilydjwg/pssh


πŸ’œ SEE ALSO πŸ’œ

rsync(1), ssh(1), ssh_config(5), pssh(1), prsync(1), pslurp(1), pnuke(1),


okay that's the whole page bestie, mwah πŸ’– this icon dropped on January 24, 2012 (yes she's a vintage queen, we stan) and she's been out here living her best life in the General Commands Manual ever since. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from