Scroll to navigation

parallel-rsync(1) General Commands Manual parallel-rsync(1)

NAME

parallel-rsync — parallel file sync program

SYNOPSIS

parallel-rsync [-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

parallel-rsync is a program for copying files in parallel to a number of hosts using the popular rsync program. It provides features such as passing a password to ssh, saving output to files, and timing out.

OPTIONS

Read hosts from the given host_file. Lines in the host file are of the form [user@]host[:port] and can include blank lines and comments (lines beginning with "#"). If multiple host files are given (the -h option is used more than once), then parallel-rsync behaves as though these files were concatenated together. If a host is specified multiple times, then parallel-rsync will connect the given number of times.

[user@]host[:port]
[user@]host[:port]
"[user@]host[:port] [ [user@]host[:port ] ... ]"
"[user@]host[:port] [ [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.

Use the given username as the default for any host entries that don't specifically specify a user.

Use the given number as the maximum number of concurrent connections.

Make connections time out after the given number of seconds. With a value of 0, parallel-rsync will not timeout any connections.

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.

Save standard error to files in the given directory. Filenames are of the same form as with the -o option.

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.

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.

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.

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). However, be aware that a root user on your system could potentially intercept the password.

Include error messages from rsync with the -i and -e options.

Recursively copy directories.

Use rsync archive mode (rsync's -a option).

Use rsync compression.

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 parallel-ssh host files, provides a tremendous amount of flexibility.

EXIT STATUS

The exit status codes from parallel-rsync are as follows:

0
Success

1
Miscellaneous error

2
Syntax or usage error

3
At least one process was killed by a signal or timed out.

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/parallel-ssh

SEE ALSO

rsync(1), ssh(1), ssh_config(5), parallel-ssh(1), parallel-rsync(1), parallel-slurp(1), parallel-nuke(1),

January 24, 2012