42
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
1 .\" Hey, EMACS: -*- nroff -*- |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
2 .\" First parameter, NAME, should be all caps |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
3 .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
4 .\" other parameters are allowed: see man(7), man(1) |
48
d26ffbbcbdad
updated man page (added dereference and no-dereference options description)
Goffi <goffi@goffi.org>
diff
changeset
|
5 .TH GCP 1 "June 04, 2011" |
42
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
6 .\" Please adjust this date whenever revising the manpage. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
7 .\" |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
8 .\" Some roff macros, for reference: |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
9 .\" .nh disable hyphenation |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
10 .\" .hy enable hyphenation |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
11 .\" .ad l left justify |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
12 .\" .ad b justify to both left and right margins |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
13 .\" .nf disable filling |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
14 .\" .fi enable filling |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
15 .\" .br insert line break |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
16 .\" .sp <n> insert n+1 empty lines |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
17 .\" for manpage-specific macros, see man(7) |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
18 .SH NAME |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
19 gcp \- Advanced command-line file copier |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
20 .SH SYNOPSIS |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
21 .B gcp |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
22 .RI [ OPTIONS ] |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
23 .I FILE DEST |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
24 .br |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
25 .B gcp |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
26 .RI [ OPTIONS ] |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
27 .I FILE1 |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
28 .RI [ FILE2 ... ] |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
29 .I DEST-DIR |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
30 .SH DESCRIPTION |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
31 This manual page documents briefly the |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
32 .B gcp |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
33 command. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
34 .PP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
35 .\" TeX users may be more comfortable with the \fB<whatever>\fP and |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
36 .\" \fI<whatever>\fP escape sequences to invode bold face and italics, |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
37 .\" respectively. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
38 \fBgcp\fP is a file copier, loosely inspired by cp, but with high level functionalities like: |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
39 \- transfer progression indication |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
40 \- continuous copying when there is an issue: it skips the problematic file and goes on |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
41 \- copy status logging: which files were effectively copied |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
42 \- name mangling to handle target filesystem limitations (e.g. removing incompatible chars like "?" or "*" on vfat) |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
43 \- forced copy serialization: new files to copy are added to a global queue to avoid hard drive head seeks |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
44 \- transfer list management: gcp can save a list of files to copy and reuse it later |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
45 \- approximate option compatibility with cp (approximate because the behaviour is not exactly the same, see below) |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
46 .SH OPTIONS |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
47 These programs follow the usual GNU command line syntax, with long |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
48 options starting with two dashes (`-'). |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
49 By default, calling gcp is equivalent to calling gcp \-\-preserve=mode,ownership,timestamps. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
50 .PP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
51 A summary of options is included below. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
52 .SS "General options" |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
53 .TP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
54 .B \-\-version |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
55 Show version of program and exit. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
56 .TP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
57 .B \-h, \-\-help |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
58 Show summary of options. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
59 .TP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
60 .B \-r, \-\-recursive |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
61 Copy directories recursively. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
62 .TP |
48
d26ffbbcbdad
updated man page (added dereference and no-dereference options description)
Goffi <goffi@goffi.org>
diff
changeset
|
63 .B \-L, \-\-dereference |
d26ffbbcbdad
updated man page (added dereference and no-dereference options description)
Goffi <goffi@goffi.org>
diff
changeset
|
64 always follow symbolic links in sources |
d26ffbbcbdad
updated man page (added dereference and no-dereference options description)
Goffi <goffi@goffi.org>
diff
changeset
|
65 .TP |
d26ffbbcbdad
updated man page (added dereference and no-dereference options description)
Goffi <goffi@goffi.org>
diff
changeset
|
66 .B \-P, \-\-no\-dereference |
d26ffbbcbdad
updated man page (added dereference and no-dereference options description)
Goffi <goffi@goffi.org>
diff
changeset
|
67 never follow symbolic links in sources |
d26ffbbcbdad
updated man page (added dereference and no-dereference options description)
Goffi <goffi@goffi.org>
diff
changeset
|
68 .TP |
42
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
69 .B \-f, \-\-force |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
70 Overwrite existing files. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
71 .TP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
72 .B \-\-preserve=PRESERVE |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
73 Keep specified attributes. Attributes can be mode, ownership and timestamps. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
74 When several attributes are passed, they need to be separated by commas. Note |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
75 that timestamps preservation has some limits, see section LIMITS. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
76 .TP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
77 .B \-\-no\-fs\-fix |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
78 Don't fix file system naming incompatibilities. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
79 .TP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
80 .B \-\-no\-progress |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
81 Disable progress bar. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
82 .TP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
83 .B \-v, \-\-verbose |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
84 Display what is being done. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
85 .SS "Sources saving" |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
86 .TP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
87 .B \-\-sources\-save=SOURCES_SAVE |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
88 Save the list of source files in a list named SOURCES_SAVE. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
89 .TP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
90 .B \-\-sources\-replace=SOURCES_REPLACE |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
91 Save the list of source files in a list named SOURCES_REPLACE and |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
92 replace it if it already exists. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
93 .TP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
94 .B \-\-sources\-load=SOURCES_LOAD |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
95 Reuse the list of source file named SOURCES_LOAD. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
96 .TP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
97 .B \-\-sources\-del=SOURCES_DEL |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
98 Delete the list of source files named SOURCES_DEL. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
99 .TP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
100 .B \-\-sources\-list |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
101 List the names of source file lists. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
102 .TP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
103 .B \-\-sources\-full\-list |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
104 List the names of source file lists, including their content. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
105 .SH LIMITS |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
106 Timestamps preservation with \-\-preserve option is limited by the os python |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
107 module on POSIX systems. Currently, python only returns timestamps in float |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
108 format, which is a smaller precision than what POSIX provides. Progress on this |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
109 issue can be seen at http://bugs.python.org/issue11457. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
110 .SH SEE ALSO |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
111 .BR cp (1). |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
112 .br |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
113 .SH AUTHOR |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
114 gcp was written by Jérôme Poisson <goffi@goffi.org>. |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
115 .PP |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
116 This manual page was written by Thomas Preud'homme <robotux@celest.fr>, |
Thomas Preud'homme <thomas.preudhomme@celest.fr>
parents:
diff
changeset
|
117 for the Debian project (and may be used by others). |