The pcp command¶
Synopsis¶
pcp [options] <source> [<source> ...] <destination>
Description¶
The pcp command is a is a wrapper that starts several sync processes to copy directory trees in parallel. This is allows much better copying performance on file system that have relatively high latency when retrieving individual files like S3QL.
Note: Using this program only improves performance when copying from an S3QL file system. When copying to an S3QL file system, using pcp is more likely to decrease performance.
Options¶
The pcp command accepts the following options:
- -a
Pass -aHAX option to rsync.
- --processes <no>
Number of rsync processes to use. [default: 10]
- --log <target>
Destination for log messages. Specify ‘none’ for standard output or ‘syslog’ for the system logging daemon. Anything else is interpreted as a file name. Log files are rotated when they reach 1 MiB, keeping at most 5 old files.
- --debug
Activate debugging output from all S3QL modules. Debug messages are written to the destination given by –log.
- --debug-modules <module>
Activate debugging output from the named module. May be given multiple times; use ‘all’ for everything. Debug messages are written to the destination given by –log.
- --quiet
be really quiet
- --help
Show this message and exit.
Exit Codes¶
pcp may terminate with the following exit codes:
- 0:
Everything went well.
- 1:
An unexpected error occurred. This may indicate a bug in the program.
- 2:
Invalid command line argument or configuration file key.
See Also¶
pcp is shipped as part of S3QL, https://github.com/s3ql/s3ql/.