'\" t .\" Title: gfpcopy .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 27 Aug 2015 .\" Manual: Gfarm .\" Source: Gfarm .\" Language: English .\" .TH "GFPCOPY" "1" "27 Aug 2015" "Gfarm" "Gfarm" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" gfpcopy \- copy Gfarm files in parallel .SH "SYNOPSIS" .HP \w'\fBgfpcopy\fR\ 'u \fBgfpcopy\fR [\-nqvdpPU] [\-X\ \fIregexp\fR] [\-S\ \fIsource\-domainname\fR] [\-h\ \fIsource\-hostfile\fR] [\-D\ \fIdestination\-domainname\fR] [\-H\ \fIdestination\-hostfile\fR] [\-j\ \fInum\-of\-processes\fR] [\-J\ \fInum\-of\-processes\fR] [\-M\ \fIlimit\-byte\fR] [\-z\ \fIminimum\-byte\fR] [\-Z\ \fImaximum\-byte\fR] [\-w\ \fIway\-of\-scheduling\fR] [\-W\ \fIkilobytes\-for\-threshold\fR] [\-s\ \fIKB/s\-to\-simulate\fR] [\-F\ \fInum\-for\-readahead\fR] [\-b\ \fIbufsize\fR] [\-f] [\-e] [\-k] \fIsource\-path\fR \fIdestination\-path\fR .SH "DESCRIPTION" .PP \fBgfpcopy\fR copies files in parallel\&. .PP When the \fIsource\-path\fR parameter is a directory, files under the directory will be copied recursively\&. .PP When the \fIdestination\-path\fR does not exist, the directory is created\&. When the \fIdestination\-path\fR exists, a directry of the same name as the \fIsource\-path\fR is created under the \fIdestination\-path\fR\&. .PP A set of source/destination hosts can be specified by a domain name and/or a hostlist file\&. When both a domain name and a hostlist file are specified, a set of hosts is determined by both conditions\&. When a set of source hosts is specified, only files stored on the source hosts are cppied\&. When a set of source hosts are specified, only files stored on the set of source hosts are copied\&. A set of hosts can be specified by a domain name and/or a host file\&. When both a domain name and a host file are specified, a set of hosts is determined by both conditions\&. .PP \fBgfpcopy\fR can also read the directory and get information of the entries in parallel\&. .SH "SOURCE PATH" .PP \fIsource\-path\fR must be following format\&. Files on HPSS cannot be copied\&. .PP \fIgfarm:\&.\&.\&.\fR .RS 4 is Gfarm URL\&. .RE .PP \fIfile:\&.\&.\&.\fR .RS 4 is URL of Local Filesystem\&. .RE .PP \fIANY\fR .RS 4 is relative path or absolute path of Local Filesystem\&. When the path is a mountpoint on gfarm2fs, files are copied without passing through the gfarm2fs\&. .RE .SH "DESTINATION PATH" .PP \fIdestination\-path\fR must be following format\&. .PP \fIgfarm:\&.\&.\&.\fR .RS 4 is Gfarm URL of a directory\&. .RE .PP \fIfile:\&.\&.\&.\fR .RS 4 is URL of a directory on Local Filesystem\&. .RE .PP \fIhpss:\&.\&.\&.\fR .RS 4 is URL of a directory on HPSS\&. If A directory named the same as the \fIsource\-path\fR exists under this directory, the \fIsource\-path\fR cannot be copied\&. The difference of files cannot be copied to HPSS\&. Relative path such as "hpss:"\&. or "hpss:dir" can be also specified\&. .RE .PP \fIANY\fR .RS 4 is relative path or absolute path of Local Filesystem\&. When the path is a mountpoint on gfarm2fs, files are copied without passing through the gfarm2fs\&. .RE .SH "GFPCOPY OPTIONS" .PP These are the options only for \fBgfpcopy\fR\&. .PP \fB\-b\fR \fIbufsize\fR .RS 4 Specifies the buffer size to copy\&. .sp The default value is 64KiB (64 * 1024)\&. .RE .PP \fB\-f\fR .RS 4 With \-f option, existing destination files will be overwritten when the size is different or the modification time (mtime) is different from the source file\&. .sp Without \-f option, existing destination files will be overwritten when that they are older than the corresponding source files in the modification time\&. .RE .PP \fB\-e\fR .RS 4 Skips existing destination files in order to execute multiple gfpcopy simultaneously\&. .RE .PP \fB\-k\fR .RS 4 Does not copy symbolic links\&. .RE .SH "COMMON OPTIONS" .PP \fBgfpcopy\fR has the same options with \fBgfprep\fR\&. (see man \fBgfprep\fR) .SH "EXAMPLES" .PP To copy files under the directory recursively\&. .sp .if n \{\ .RS 4 .\} .nf $ gfpcopy gfarm:///dir file:///tmp/dir .fi .if n \{\ .RE .\} .sp .if n \{\ .RS 4 .\} .nf $ gfpcopy file:///tmp/dir gfarm:///dir .fi .if n \{\ .RE .\} .sp .if n \{\ .RS 4 .\} .nf $ gfpcopy gfarm:///dir1 gfarm:///dir2 .fi .if n \{\ .RE .\} .sp .if n \{\ .RS 4 .\} .nf $ gfpcopy gfarm:///dir hpss:///tmp/dir .fi .if n \{\ .RE .\} .sp .if n \{\ .RS 4 .\} .nf $ cd /mnt/gfarm2fs $ gfpcopy dir /tmp/dir .fi .if n \{\ .RE .\} .PP To copy a file\&. .sp .if n \{\ .RS 4 .\} .nf $ gfpcopy gfarm:///dir/file file:///dir .fi .if n \{\ .RE .\} .sp .if n \{\ .RS 4 .\} .nf $ cd /mnt/gfarm2fs $ gfpcopy file /tmp/dir .fi .if n \{\ .RE .\} .SH "NOTES" .PP If the gfmd and \fBgfpcopy\fR are far apart, the \fBgfpcopy\fR operation is slow\&. Specifying a large value by \-j or \-J options may be effective in such a case\&. .SH "SEE ALSO" .PP \fBgfprep\fR(1), \fBgfreg\fR(1), \fBgfexport\fR(1), \fBgfarm2.conf\fR(5)