BPCP

bpcp is the best utility for copying files effeciently across the cluster. It is the bproc replacement for rcp and scp. It's syntax is compatable with rcp.

Syntax

bpcp <source> <destination>

Both source and destination are specified in the form [<node>:][<path>/]<filename>

Any optional portion that is not specified will take on a reasonable default value as follows:

  • <node> will default to the master (-1:)
  • <path> will default to the CWD or on a slave node, / if CWD doesn't exist
  • <filename> will default to the filename spoecified in the source argument

As might be expected, '.' specifies the CWD.

For compatability with older cluster software, bpcp is syntax compatable with rcp. Thus, in source code, one may safely s/rcp/bpcp/g and re-compile.

Examples
 
bpcp /etc/sensors 1:/etc
 
cd /etc ; bpcp sensors 1:
 
bpcp 2:/etc/sensors 1:/etc
 
bpcp.txt · Last modified: 2010/04/15 15:18 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki