author | klauw <ken.lauw@oracle.com> |
Tue, 18 Jun 2013 13:15:45 -0700 | |
changeset 1351 | 5c589218fa09 |
parent 297 | 3940bc347ca8 |
child 1817 | ff42a83716c4 |
permissions | -rw-r--r-- |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1 |
--- rsync-3.0.9/rsync.1.orig 2011-09-23 09:42:26.000000000 -0700 |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2 |
+++ rsync-3.0.9/rsync.1 2013-04-19 14:14:00.348176963 -0700 |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3 |
@@ -1,6 +1,6 @@ |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
4 |
.TH "rsync" "1" "23 Sep 2011" "" "" |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
5 |
.SH "NAME" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
6 |
-rsync \- a fast, versatile, remote (and local) file\-copying tool |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
7 |
+rsync \(em a fast, versatile, remote (and local) file-copying tool |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
8 |
.SH "SYNOPSIS" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
9 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
10 |
.PP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
11 |
@@ -29,30 +29,30 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
12 |
copy locally, to/from another host over any remote shell, or to/from a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
13 |
remote rsync daemon. It offers a large number of options that control |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
14 |
every aspect of its behavior and permit very flexible specification of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
15 |
-set of files to be copied. It is famous for its delta\-transfer algorithm, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
16 |
+set of files to be copied. It is famous for its delta-transfer algorithm, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
17 |
which reduces the amount of data sent over the network by sending only the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
18 |
differences between the source files and the existing files in the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
19 |
destination. Rsync is widely used for backups and mirroring and as an |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
20 |
improved copy command for everyday use. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
21 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
22 |
-Rsync finds files that need to be transferred using a \(dq\&quick check\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
23 |
+Rsync finds files that need to be transferred using a \(lqquick check\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
24 |
algorithm (by default) that looks for files that have changed in size or |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
25 |
-in last\-modified time. Any changes in the other preserved attributes (as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
26 |
+in last-modified time. Any changes in the other preserved attributes (as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
27 |
requested by options) are made on the destination file directly when the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
28 |
-quick check indicates that the file\(cq\&s data does not need to be updated. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
29 |
+quick check indicates that the file's data does not need to be updated. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
30 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
31 |
Some of the additional features of rsync are: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
32 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
33 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
34 |
support for copying links, devices, owners, groups, and permissions |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
35 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
36 |
-exclude and exclude\-from options similar to GNU tar |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
37 |
+exclude and exclude-from options similar to GNU tar |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
38 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
39 |
a CVS exclude mode for ignoring the same files that CVS would ignore |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
40 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
41 |
can use any transparent remote shell, including ssh or rsh |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
42 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
43 |
-does not require super\-user privileges |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
44 |
+does not require super-user privileges |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
45 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
46 |
pipelining of file transfers to minimize latency costs |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
47 |
.IP o |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
48 |
@@ -67,24 +67,25 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
49 |
current host (it does not support copying files between two remote hosts). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
50 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
51 |
There are two different ways for rsync to contact a remote system: using a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
52 |
-remote\-shell program as the transport (such as ssh or rsh) or contacting an |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
53 |
-rsync daemon directly via TCP. The remote\-shell transport is used whenever |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
54 |
+remote-shell program as the transport (such as ssh or rsh) or contacting an |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
55 |
+rsync daemon directly via TCP. The remote-shell transport is used whenever |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
56 |
the source or destination path contains a single colon (:) separator after |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
57 |
a host specification. Contacting an rsync daemon directly happens when the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
58 |
source or destination path contains a double colon (::) separator after a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
59 |
host specification, OR when an rsync:// URL is specified (see also the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
60 |
-\(dq\&USING RSYNC\-DAEMON FEATURES VIA A REMOTE\-SHELL CONNECTION\(dq\& section for |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
61 |
+\(lqUSING RSYNC-DAEMON FEATURES VIA A REMOTE-SHELL CONNECTION\(rq section for |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
62 |
+\(lqUSING RSYNC-DAEMON FEATURES VIA A REMOTE-SHELL CONNECTION\(rq section for |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
63 |
an exception to this latter rule). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
64 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
65 |
As a special case, if a single source arg is specified without a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
66 |
-destination, the files are listed in an output format similar to \(dq\&ls \-l\(dq\&. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
67 |
+destination, the files are listed in an output format similar to \(lqls \-l\(rq. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
68 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
69 |
As expected, if neither the source or destination path specify a remote |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
70 |
host, the copy occurs locally (see also the \fB\-\-list\-only\fP option). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
71 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
72 |
-Rsync refers to the local side as the \(dq\&client\(dq\& and the remote side as the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
73 |
-\(dq\&server\(dq\&. Don\(cq\&t confuse \(dq\&server\(dq\& with an rsync daemon \-\- a daemon is always a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
74 |
-server, but a server can be either a daemon or a remote\-shell spawned process. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
75 |
+Rsync refers to the local side as the \(lqclient\(rq and the remote side as the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
76 |
+\(lqserver\(rq. Don't confuse \(lqserver\(rq with an rsync daemon \(em a daemon is always a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
77 |
+server, but a server can be either a daemon or a remote-shell spawned process. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
78 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
79 |
.SH "SETUP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
80 |
|
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
81 |
@@ -93,7 +94,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
82 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
83 |
Once installed, you can use rsync to any machine that you can access via |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
84 |
a remote shell (as well as some that you can access using the rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
85 |
-daemon\-mode protocol). For remote transfers, a modern rsync uses ssh |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
86 |
+daemon-mode protocol). For remote transfers, a modern rsync uses ssh |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
87 |
for its communications, but it may have been configured to use a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
88 |
different remote shell by default, such as rsh or remsh. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
89 |
.PP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
90 |
@@ -119,7 +120,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
91 |
This would transfer all files matching the pattern *.c from the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
92 |
current directory to the directory src on the machine foo. If any of |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
93 |
the files already exist on the remote system then the rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
94 |
-remote\-update protocol is used to update the file by sending only the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
95 |
+remote-update protocol is used to update the file by sending only the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
96 |
differences. See the tech report for details. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
97 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
98 |
.RS |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
99 |
@@ -129,7 +130,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
100 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
101 |
This would recursively transfer all files from the directory src/bar on the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
102 |
machine foo into the /data/tmp/bar directory on the local machine. The |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
103 |
-files are transferred in \(dq\&archive\(dq\& mode, which ensures that symbolic |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
104 |
+files are transferred in \(lqarchive\(rq mode, which ensures that symbolic |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
105 |
links, devices, attributes, permissions, ownerships, etc. are preserved |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
106 |
in the transfer. Additionally, compression will be used to reduce the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
107 |
size of data portions of the transfer. |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
108 |
@@ -141,8 +142,8 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
109 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
110 |
A trailing slash on the source changes this behavior to avoid creating an |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
111 |
additional directory level at the destination. You can think of a trailing |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
112 |
-/ on a source as meaning \(dq\© the contents of this directory\(dq\& as opposed |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
113 |
-to \(dq\© the directory by name\(dq\&, but in both cases the attributes of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
114 |
+/ on a source as meaning \(lqcopy the contents of this directory\(rq as opposed |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
115 |
+to \(lqcopy the directory by name\(rq, but in both cases the attributes of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
116 |
containing directory are transferred to the containing directory on the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
117 |
destination. In other words, each of the following commands copies the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
118 |
files in the same way, including their setting of the attributes of |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
119 |
@@ -156,9 +157,9 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
120 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
121 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
122 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
123 |
-Note also that host and module references don\(cq\&t require a trailing slash to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
124 |
+Note also that host and module references don't require a trailing slash to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
125 |
copy the contents of the default directory. For example, both of these |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
126 |
-copy the remote directory\(cq\&s contents into \(dq\&/dest\(dq\&: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
127 |
+copy the remote directory's contents into \(lq/dest\(rq: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
128 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
129 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
130 |
\f(CWrsync \-av host: /dest\fP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
131 |
@@ -168,8 +169,8 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
132 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
133 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
134 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
135 |
-You can also use rsync in local\-only mode, where both the source and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
136 |
-destination don\(cq\&t have a \(cq\&:\(cq\& in the name. In this case it behaves like |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
137 |
+You can also use rsync in local-only mode, where both the source and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
138 |
+destination don't have a \(oq:\(cq in the name. In this case it behaves like |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
139 |
an improved copy command. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
140 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
141 |
Finally, you can list all the (listable) modules available from a |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
142 |
@@ -186,7 +187,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
143 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
144 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
145 |
The syntax for requesting multiple files from a remote host is done by |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
146 |
-specifying additional remote\-host args in the same style as the first, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
147 |
+specifying additional remote-host args in the same style as the first, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
148 |
or with the hostname omitted. For instance, all these work: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
149 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
150 |
.RS |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
151 |
@@ -202,22 +203,22 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
152 |
examples: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
153 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
154 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
155 |
-\f(CWrsync \-av host:'\&dir1/file1 dir2/file2'\& /dest\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
156 |
+\f(CWrsync \-av host:'dir1/file1 dir2/file2' /dest\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
157 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
158 |
-\f(CWrsync host::'\&modname/dir1/file1 modname/dir2/file2'\& /dest\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
159 |
+\f(CWrsync host::'modname/dir1/file1 modname/dir2/file2' /dest\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
160 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
161 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
162 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
163 |
-This word\-splitting still works (by default) in the latest rsync, but is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
164 |
+This word-splitting still works (by default) in the latest rsync, but is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
165 |
not as easy to use as the first method. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
166 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
167 |
If you need to transfer a filename that contains whitespace, you can either |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
168 |
-specify the \fB\-\-protect\-args\fP (\fB\-s\fP) option, or you\(cq\&ll need to escape |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
169 |
+specify the \fB\-\-protect\-args\fP (\fB\-s\fP) option, or you'll need to escape |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
170 |
the whitespace in a way that the remote shell will understand. For |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
171 |
instance: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
172 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
173 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
174 |
-\f(CWrsync \-av host:'\&file\e name\e with\e spaces'\& /dest\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
175 |
+\f(CWrsync \-av host:'file\e name\e with\e spaces' /dest\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
176 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
177 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
178 |
.PP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
179 |
@@ -237,7 +238,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
180 |
you either use a double colon :: instead of a single colon to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
181 |
separate the hostname from the path, or you use an rsync:// URL. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
182 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
183 |
-the first word of the \(dq\&path\(dq\& is actually a module name. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
184 |
+the first word of the \(lqpath\(rq is actually a module name. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
185 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
186 |
the remote daemon may print a message of the day when you |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
187 |
connect. |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
188 |
@@ -251,7 +252,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
189 |
you must not specify the \fB\-\-rsh\fP (\fB\-e\fP) option. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
190 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
191 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
192 |
-An example that copies all the files in a remote module named \(dq\&src\(dq\&: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
193 |
+An example that copies all the files in a remote module named \(lqsrc\(rq: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
194 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
195 |
.nf |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
196 |
rsync \-av host::src /dest |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
197 |
@@ -269,18 +270,18 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
198 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
199 |
You may establish the connection via a web proxy by setting the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
200 |
environment variable RSYNC_PROXY to a hostname:port pair pointing to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
201 |
-your web proxy. Note that your web proxy\(cq\&s configuration must support |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
202 |
+your web proxy. Note that your web proxy's configuration must support |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
203 |
proxy connections to port 873. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
204 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
205 |
You may also establish a daemon connection using a program as a proxy by |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
206 |
setting the environment variable RSYNC_CONNECT_PROG to the commands you |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
207 |
wish to run in place of making a direct socket connection. The string may |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
208 |
-contain the escape \(dq\&%H\(dq\& to represent the hostname specified in the rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
209 |
-command (so use \(dq\&%%\(dq\& if you need a single \(dq\&%\(dq\& in your string). For |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
210 |
+contain the escape \(lq%H\(rq to represent the hostname specified in the rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
211 |
+command (so use \(lq%%\(rq if you need a single \(lq%\(rq in your string). For |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
212 |
example: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
213 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
214 |
.nf |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
215 |
- export RSYNC_CONNECT_PROG='\&ssh proxyhost nc %H 873'\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
216 |
+ export RSYNC_CONNECT_PROG='ssh proxyhost nc %H 873' |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
217 |
rsync \-av targethost1::module/src/ /dest/ |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
218 |
rsync \-av rsync:://targethost2/module/src/ /dest/ |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
219 |
.fi |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
220 |
@@ -290,26 +291,26 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
221 |
which forwards all data to port 873 (the rsync daemon) on the targethost |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
222 |
(%H). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
223 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
224 |
-.SH "USING RSYNC\-DAEMON FEATURES VIA A REMOTE\-SHELL CONNECTION" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
225 |
+.SH "USING RSYNC-DAEMON FEATURES VIA A REMOTE-SHELL CONNECTION" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
226 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
227 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
228 |
It is sometimes useful to use various features of an rsync daemon (such as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
229 |
named modules) without actually allowing any new socket connections into a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
230 |
-system (other than what is already required to allow remote\-shell access). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
231 |
+system (other than what is already required to allow remote-shell access). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
232 |
Rsync supports connecting to a host using a remote shell and then spawning |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
233 |
-a single\-use \(dq\&daemon\(dq\& server that expects to read its config file in the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
234 |
+a single-use \(lqdaemon\(rq server that expects to read its config file in the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
235 |
home dir of the remote user. This can be useful if you want to encrypt a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
236 |
-daemon\-style transfer\(cq\&s data, but since the daemon is started up fresh by |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
237 |
+daemon-style transfer's data, but since the daemon is started up fresh by |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
238 |
the remote user, you may not be able to use features such as chroot or |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
239 |
change the uid used by the daemon. (For another way to encrypt a daemon |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
240 |
transfer, consider using ssh to tunnel a local port to a remote machine and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
241 |
configure a normal rsync daemon on that remote host to only allow |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
242 |
-connections from \(dq\&localhost\(dq\&.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
243 |
+connections from \(lqlocalhost\(rq.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
244 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
245 |
-From the user\(cq\&s perspective, a daemon transfer via a remote\-shell |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
246 |
-connection uses nearly the same command\-line syntax as a normal |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
247 |
-rsync\-daemon transfer, with the only exception being that you must |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
248 |
-explicitly set the remote shell program on the command\-line with the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
249 |
+From the user's perspective, a daemon transfer via a remote-shell |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
250 |
+connection uses nearly the same command-line syntax as a normal |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
251 |
+rsync-daemon transfer, with the only exception being that you must |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
252 |
+explicitly set the remote shell program on the command-line with the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
253 |
\fB\-\-rsh=COMMAND\fP option. (Setting the RSYNC_RSH in the environment |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
254 |
will not turn on this functionality.) For example: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
255 |
.PP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
256 |
@@ -318,32 +319,36 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
257 |
.fi |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
258 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
259 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
260 |
-If you need to specify a different remote\-shell user, keep in mind that the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
261 |
-user@ prefix in front of the host is specifying the rsync\-user value (for a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
262 |
-module that requires user\-based authentication). This means that you must |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
263 |
-give the \(cq\&\-l user\(cq\& option to ssh when specifying the remote\-shell, as in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
264 |
+If you need to specify a different remote-shell user, keep in mind that the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
265 |
+user@ prefix in front of the host is specifying the rsync-user value (for a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
266 |
+module that requires user-based authentication). This means that you must |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
267 |
+give the '\-l user' option to ssh when specifying the remote-shell, as in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
268 |
this example that uses the short version of the \fB\-\-rsh\fP option: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
269 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
270 |
.nf |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
271 |
- rsync \-av \-e \(dq\&ssh \-l ssh\-user\(dq\& rsync\-user@host::module /dest |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
272 |
+ rsync \-av \-e "ssh \-l ssh-user" rsync-user@host::module /dest |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
273 |
.fi |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
274 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
275 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
276 |
-The \(dq\&ssh\-user\(dq\& will be used at the ssh level; the \(dq\&rsync\-user\(dq\& will be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
277 |
-used to log\-in to the \(dq\&module\(dq\&. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
278 |
+The \(lqssh-user\(rq will be used at the ssh level; the \(lqrsync-user\(rq will be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
279 |
+used to log-in to the \(lqmodule\(rq. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
280 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
281 |
.SH "STARTING AN RSYNC DAEMON TO ACCEPT CONNECTIONS" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
282 |
|
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
283 |
.PP |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
284 |
+WARNING: Daemon mode does not participate in the core Solaris security |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
285 |
+policies, including Authentication, limit of privileges, Audit and Audit |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
286 |
+of any subprocessing. |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
287 |
+.PP |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
288 |
In order to connect to an rsync daemon, the remote system needs to have a |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
289 |
daemon already running (or it needs to have configured something like inetd |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
290 |
to spawn an rsync daemon for incoming connections on a particular port). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
291 |
For full information on how to start a daemon that will handling incoming |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
292 |
-socket connections, see the \fBrsyncd.conf\fP(5) man page \-\- that is the config |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
293 |
+socket connections, see the \fBrsyncd.conf\fP(5) man page \(em that is the config |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
294 |
file for the daemon, and it contains the full details for how to run the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
295 |
-daemon (including stand\-alone and inetd configurations). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
296 |
+daemon (including stand-alone and inetd configurations). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
297 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
298 |
-If you\(cq\&re using one of the remote\-shell transports for the transfer, there is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
299 |
+If you're using one of the remote-shell transports for the transfer, there is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
300 |
no need to manually start an rsync daemon. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
301 |
.PP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
302 |
.SH "SORTED TRANSFER ORDER" |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
303 |
@@ -353,19 +358,19 @@ |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
304 |
This handles the merging together of the contents of identically named |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
305 |
directories, makes it easy to remove duplicate filenames, and may confuse |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
306 |
someone when the files are transferred in a different order than what was |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
307 |
-given on the command\-line. |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
308 |
+given on the command-line. |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
309 |
.PP |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
310 |
If you need a particular file to be transferred prior to another, either |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
311 |
separate the files into different rsync calls, or consider using |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
312 |
-\fB\-\-delay\-updates\fP (which doesn\(cq\&t affect the sorted transfer order, but |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
313 |
-does make the final file\-updating phase happen much more rapidly). |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
314 |
+\fB\-\-delay-updates\fP (which doesn't affect the sorted transfer order, but |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
315 |
+does make the final file-updating phase happen much more rapidly). |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
316 |
.PP |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
317 |
.SH "EXAMPLES" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
318 |
|
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
319 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
320 |
Here are some examples of how I use rsync. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
321 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
322 |
-To backup my wife\(cq\&s home directory, which consists of large MS Word |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
323 |
+To backup my wife's home directory, which consists of large MS Word |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
324 |
files and mail folders, I use a cron job that runs |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
325 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
326 |
.RS |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
327 |
@@ -374,14 +379,14 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
328 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
329 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
330 |
each night over a PPP connection to a duplicate directory on my machine |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
331 |
-\(dq\&arvidsjaur\(dq\&. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
332 |
+\(lqarvidsjaur\(rq. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
333 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
334 |
To synchronize my samba source trees I use the following Makefile |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
335 |
targets: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
336 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
337 |
.nf |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
338 |
get: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
339 |
- rsync \-avuzb \-\-exclude '\&*~'\& samba:samba/ . |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
340 |
+ rsync \-avuzb \-\-exclude '*~' samba:samba/ . |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
341 |
put: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
342 |
rsync \-Cavuzb . samba:samba/ |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
343 |
sync: get put |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
344 |
@@ -390,12 +395,12 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
345 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
346 |
this allows me to sync with a CVS directory at the other end of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
347 |
connection. I then do CVS operations on the remote machine, which saves a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
348 |
-lot of time as the remote CVS protocol isn\(cq\&t very efficient. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
349 |
+lot of time as the remote CVS protocol isn't very efficient. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
350 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
351 |
-I mirror a directory between my \(dq\&old\(dq\& and \(dq\&new\(dq\& ftp sites with the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
352 |
+I mirror a directory between my \(lqold\(rq and \(lqnew\(rq ftp sites with the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
353 |
command: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
354 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
355 |
-\f(CWrsync \-az \-e ssh \-\-delete ~ftp/pub/samba nimbus:\(dq\&~ftp/pub/tridge\(dq\&\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
356 |
+\f(CWrsync \-az \-e ssh \-\-delete ~ftp/pub/samba nimbus:"~ftp/pub/tridge"\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
357 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
358 |
This is launched from cron every few hours. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
359 |
.PP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
360 |
@@ -407,25 +412,25 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
361 |
.nf |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
362 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
363 |
\-v, \-\-verbose increase verbosity |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
364 |
- \-q, \-\-quiet suppress non\-error messages |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
365 |
- \-\-no\-motd suppress daemon\-mode MOTD (see caveat) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
366 |
- \-c, \-\-checksum skip based on checksum, not mod\-time & size |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
367 |
+ \-q, \-\-quiet suppress non-error messages |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
368 |
+ \-\-no\-motd suppress daemon-mode MOTD (see caveat) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
369 |
+ \-c, \-\-checksum skip based on checksum, not mod-time & size |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
370 |
\-a, \-\-archive archive mode; equals \-rlptgoD (no \-H,\-A,\-X) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
371 |
\-\-no\-OPTION turn off an implied OPTION (e.g. \-\-no\-D) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
372 |
\-r, \-\-recursive recurse into directories |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
373 |
\-R, \-\-relative use relative path names |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
374 |
- \-\-no\-implied\-dirs don'\&t send implied dirs with \-\-relative |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
375 |
+ \-\-no\-implied\-dirs don't send implied dirs with \-\-relative |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
376 |
\-b, \-\-backup make backups (see \-\-suffix & \-\-backup\-dir) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
377 |
\-\-backup\-dir=DIR make backups into hierarchy based in DIR |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
378 |
\-\-suffix=SUFFIX backup suffix (default ~ w/o \-\-backup\-dir) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
379 |
\-u, \-\-update skip files that are newer on the receiver |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
380 |
- \-\-inplace update destination files in\-place |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
381 |
+ \-\-inplace update destination files in-place |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
382 |
\-\-append append data onto shorter files |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
383 |
\-\-append\-verify \-\-append w/old data in file checksum |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
384 |
\-d, \-\-dirs transfer directories without recursing |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
385 |
\-l, \-\-links copy symlinks as symlinks |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
386 |
\-L, \-\-copy\-links transform symlink into referent file/dir |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
387 |
- \-\-copy\-unsafe\-links only \(dq\&unsafe\(dq\& symlinks are transformed |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
388 |
+ \-\-copy\-unsafe\-links only "unsafe" symlinks are transformed |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
389 |
\-\-safe\-links ignore symlinks that point outside the tree |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
390 |
\-k, \-\-copy\-dirlinks transform symlink to dir into referent dir |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
391 |
\-K, \-\-keep\-dirlinks treat symlinked dir on receiver as dir |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
392 |
@@ -435,25 +440,25 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
393 |
\-\-chmod=CHMOD affect file and/or directory permissions |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
394 |
\-A, \-\-acls preserve ACLs (implies \-p) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
395 |
\-X, \-\-xattrs preserve extended attributes |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
396 |
- \-o, \-\-owner preserve owner (super\-user only) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
397 |
+ \-o, \-\-owner preserve owner (super-user only) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
398 |
\-g, \-\-group preserve group |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
399 |
- \-\-devices preserve device files (super\-user only) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
400 |
+ \-\-devices preserve device files (super-user only) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
401 |
\-\-specials preserve special files |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
402 |
\-D same as \-\-devices \-\-specials |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
403 |
\-t, \-\-times preserve modification times |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
404 |
\-O, \-\-omit\-dir\-times omit directories from \-\-times |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
405 |
- \-\-super receiver attempts super\-user activities |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
406 |
+ \-\-super receiver attempts super-user activities |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
407 |
\-\-fake\-super store/recover privileged attrs using xattrs |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
408 |
\-S, \-\-sparse handle sparse files efficiently |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
409 |
\-n, \-\-dry\-run perform a trial run with no changes made |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
410 |
- \-W, \-\-whole\-file copy files whole (w/o delta\-xfer algorithm) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
411 |
- \-x, \-\-one\-file\-system don'\&t cross filesystem boundaries |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
412 |
- \-B, \-\-block\-size=SIZE force a fixed checksum block\-size |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
413 |
+ \-W, \-\-whole\-file copy files whole (w/o delta-xfer algorithm) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
414 |
+ \-x, \-\-one\-file\-system don't cross filesystem boundaries |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
415 |
+ \-B, \-\-block\-size=SIZE force a fixed checksum block-size |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
416 |
\-e, \-\-rsh=COMMAND specify the remote shell to use |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
417 |
\-\-rsync\-path=PROGRAM specify the rsync to run on remote machine |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
418 |
\-\-existing skip creating new files on receiver |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
419 |
\-\-ignore\-existing skip updating files that exist on receiver |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
420 |
- \-\-remove\-source\-files sender removes synchronized files (non\-dir) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
421 |
+ \-\-remove\-source\-files sender removes synchronized files (non-dir) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
422 |
\-\-del an alias for \-\-delete\-during |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
423 |
\-\-delete delete extraneous files from dest dirs |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
424 |
\-\-delete\-before receiver deletes before xfer, not during |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
425 |
@@ -463,19 +468,19 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
426 |
\-\-delete\-excluded also delete excluded files from dest dirs |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
427 |
\-\-ignore\-errors delete even if there are I/O errors |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
428 |
\-\-force force deletion of dirs even if not empty |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
429 |
- \-\-max\-delete=NUM don'\&t delete more than NUM files |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
430 |
- \-\-max\-size=SIZE don'\&t transfer any file larger than SIZE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
431 |
- \-\-min\-size=SIZE don'\&t transfer any file smaller than SIZE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
432 |
+ \-\-max\-delete=NUM don't delete more than NUM files |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
433 |
+ \-\-max\-size=SIZE don't transfer any file larger than SIZE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
434 |
+ \-\-min\-size=SIZE don't transfer any file smaller than SIZE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
435 |
\-\-partial keep partially transferred files |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
436 |
\-\-partial\-dir=DIR put a partially transferred file into DIR |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
437 |
\-\-delay\-updates put all updated files into place at end |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
438 |
- \-m, \-\-prune\-empty\-dirs prune empty directory chains from file\-list |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
439 |
- \-\-numeric\-ids don'\&t map uid/gid values by user/group name |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
440 |
+ \-m, \-\-prune\-empty\-dirs prune empty directory chains from file-list |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
441 |
+ \-\-numeric\-ids don't map uid/gid values by user/group name |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
442 |
\-\-timeout=SECONDS set I/O timeout in seconds |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
443 |
\-\-contimeout=SECONDS set daemon connection timeout in seconds |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
444 |
- \-I, \-\-ignore\-times don'\&t skip files that match size and time |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
445 |
+ \-I, \-\-ignore\-times don't skip files that match size and time |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
446 |
\-\-size\-only skip files that match in size |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
447 |
- \-\-modify\-window=NUM compare mod\-times with reduced accuracy |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
448 |
+ \-\-modify\-window=NUM compare mod-times with reduced accuracy |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
449 |
\-T, \-\-temp\-dir=DIR create temporary files in directory DIR |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
450 |
\-y, \-\-fuzzy find similar file for basis if no dest file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
451 |
\-\-compare\-dest=DIR also compare received files relative to DIR |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
452 |
@@ -484,29 +489,29 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
453 |
\-z, \-\-compress compress file data during the transfer |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
454 |
\-\-compress\-level=NUM explicitly set compression level |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
455 |
\-\-skip\-compress=LIST skip compressing files with suffix in LIST |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
456 |
- \-C, \-\-cvs\-exclude auto\-ignore files in the same way CVS does |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
457 |
- \-f, \-\-filter=RULE add a file\-filtering RULE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
458 |
- \-F same as \-\-filter='\&dir\-merge /.rsync\-filter'\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
459 |
- repeated: \-\-filter='\&\- .rsync\-filter'\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
460 |
+ \-C, \-\-cvs\-exclude auto-ignore files in the same way CVS does |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
461 |
+ \-f, \-\-filter=RULE add a file-filtering RULE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
462 |
+ \-F same as \-\-filter='dir-merge /.rsync\-filter' |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
463 |
+ repeated: \-\-filter='\- .rsync-filter |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
464 |
\-\-exclude=PATTERN exclude files matching PATTERN |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
465 |
\-\-exclude\-from=FILE read exclude patterns from FILE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
466 |
- \-\-include=PATTERN don'\&t exclude files matching PATTERN |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
467 |
+ \-\-include=PATTERN don't exclude files matching PATTERN |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
468 |
\-\-include\-from=FILE read include patterns from FILE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
469 |
- \-\-files\-from=FILE read list of source\-file names from FILE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
470 |
+ \-\-files\-from=FILE read list of source-file names from FILE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
471 |
\-0, \-\-from0 all *from/filter files are delimited by 0s |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
472 |
- \-s, \-\-protect\-args no space\-splitting; wildcard chars only |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
473 |
+ \-s, \-\-protect\-args no space-splitting; wildcard chars only |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
474 |
\-\-address=ADDRESS bind address for outgoing socket to daemon |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
475 |
- \-\-port=PORT specify double\-colon alternate port number |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
476 |
+ \-\-port=PORT specify double-colon alternate port number |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
477 |
\-\-sockopts=OPTIONS specify custom TCP options |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
478 |
\-\-blocking\-io use blocking I/O for the remote shell |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
479 |
- \-\-stats give some file\-transfer stats |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
480 |
- \-8, \-\-8\-bit\-output leave high\-bit chars unescaped in output |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
481 |
- \-h, \-\-human\-readable output numbers in a human\-readable format |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
482 |
+ \-\-stats give some file-transfer stats |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
483 |
+ \-8, \-\-8\-bit\-output leave high-bit chars unescaped in output |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
484 |
+ \-h, \-\-human\-readable output numbers in a human-readable format |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
485 |
\-\-progress show progress during transfer |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
486 |
\-P same as \-\-partial \-\-progress |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
487 |
- \-i, \-\-itemize\-changes output a change\-summary for all updates |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
488 |
+ \-i, \-\-itemize\-changes output a change-summary for all updates |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
489 |
\-\-out\-format=FORMAT output updates using the specified FORMAT |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
490 |
- \-\-log\-file=FILE log what we'\&re doing to the specified FILE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
491 |
+ \-\-log\-file=FILE log what we're doing to the specified FILE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
492 |
\-\-log\-file\-format=FMT log updates using the specified FMT |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
493 |
\-\-password\-file=FILE read daemon\-access password from FILE |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
494 |
\-\-list\-only list the files instead of copying them |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
495 |
@@ -534,8 +539,8 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
496 |
\-\-config=FILE specify alternate rsyncd.conf file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
497 |
\-\-no\-detach do not detach from the parent |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
498 |
\-\-port=PORT listen on alternate port number |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
499 |
- \-\-log\-file=FILE override the \(dq\&log file\(dq\& setting |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
500 |
- \-\-log\-file\-format=FMT override the \(dq\&log format\(dq\& setting |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
501 |
+ \-\-log\-file=FILE override the "log file" setting |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
502 |
+ \-\-log\-file\-format=FMT override the "log format" setting |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
503 |
\-\-sockopts=OPTIONS specify custom TCP options |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
504 |
\-v, \-\-verbose increase verbosity |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
505 |
\-4, \-\-ipv4 prefer IPv4 |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
506 |
@@ -547,21 +552,21 @@ |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
507 |
.SH "OPTIONS" |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
508 |
|
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
509 |
.PP |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
510 |
-Rsync accepts both long (double\-dash + word) and short (single\-dash + letter) |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
511 |
+Rsync accepts both long (double-dash + word) and short (single\-dash + letter) |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
512 |
options. The full list of the available options are described below. If an |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
513 |
option can be specified in more than one way, the choices are comma\-separated. |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
514 |
Some options only have a long variant, not a short. If the option takes a |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
515 |
parameter, the parameter is only listed after the long variant, even though it |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
516 |
must also be specified for the short. When specifying a parameter, you can |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
517 |
-either use the form \-\-option=param or replace the \(cq\&=\(cq\& with whitespace. The |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
518 |
-parameter may need to be quoted in some manner for it to survive the shell\(cq\&s |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
519 |
+either use the form \-\-option=param or replace the '=' with whitespace. The |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
520 |
+parameter may need to be quoted in some manner for it to survive the shell's |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
521 |
command\-line parsing. Keep in mind that a leading tilde (~) in a filename is |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
522 |
substituted by your shell, so \-\-option=~/foo will not change the tilde into |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
523 |
-your home directory (remove the \(cq\&=\(cq\& for that). |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
524 |
+your home directory (remove the '=' for that). |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
525 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
526 |
.IP "\fB\-\-help\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
527 |
Print a short help page describing the options |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
528 |
-available in rsync and exit. For backward\-compatibility with older |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
529 |
+available in rsync and exit. For backward-compatibility with older |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
530 |
versions of rsync, the help will also be output if you use the \fB\-h\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
531 |
option without any other args. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
532 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
533 |
@@ -578,11 +583,11 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
534 |
you are debugging rsync. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
535 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
536 |
Note that the names of the transferred files that are output are done using |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
537 |
-a default \fB\-\-out\-format\fP of \(dq\&%n%L\(dq\&, which tells you just the name of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
538 |
+a default \fB\-\-out\-format\fP of \(lq%n%L\(rq, which tells you just the name of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
539 |
file and, if the item is a link, where it points. At the single \fB\-v\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
540 |
level of verbosity, this does not mention when a file gets its attributes |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
541 |
changed. If you ask for an itemized list of changed attributes (either |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
542 |
-\fB\-\-itemize\-changes\fP or adding \(dq\&%i\(dq\& to the \fB\-\-out\-format\fP setting), the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
543 |
+\fB\-\-itemize\-changes\fP or adding \(lq%i\(rq to the \fB\-\-out\-format\fP setting), the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
544 |
output (on the client) increases to mention all items that are changed in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
545 |
any way. See the \fB\-\-out\-format\fP option for more details. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
546 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
547 |
@@ -595,56 +600,56 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
548 |
.IP "\fB\-\-no\-motd\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
549 |
This option affects the information that is output |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
550 |
by the client at the start of a daemon transfer. This suppresses the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
551 |
-message\-of\-the\-day (MOTD) text, but it also affects the list of modules |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
552 |
-that the daemon sends in response to the \(dq\&rsync host::\(dq\& request (due to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
553 |
+message-of-the-day (MOTD) text, but it also affects the list of modules |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
554 |
+that the daemon sends in response to the \(lqrsync host::\(rq request (due to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
555 |
a limitation in the rsync protocol), so omit this option if you want to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
556 |
request the list of modules from the daemon. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
557 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
558 |
.IP "\fB\-I, \-\-ignore\-times\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
559 |
Normally rsync will skip any files that are |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
560 |
already the same size and have the same modification timestamp. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
561 |
-This option turns off this \(dq\&quick check\(dq\& behavior, causing all files to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
562 |
+This option turns off this \(lqquick check\(rq behavior, causing all files to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
563 |
be updated. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
564 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
565 |
.IP "\fB\-\-size\-only\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
566 |
-This modifies rsync\(cq\&s \(dq\&quick check\(dq\& algorithm for |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
567 |
+This modifies rsync's \(lqquick check\(rq algorithm for |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
568 |
finding files that need to be transferred, changing it from the default of |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
569 |
-transferring files with either a changed size or a changed last\-modified |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
570 |
+transferring files with either a changed size or a changed last-modified |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
571 |
time to just looking for files that have changed in size. This is useful |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
572 |
when starting to use rsync after using another mirroring system which may |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
573 |
not preserve timestamps exactly. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
574 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
575 |
.IP "\fB\-\-modify\-window\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
576 |
When comparing two timestamps, rsync treats the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
577 |
-timestamps as being equal if they differ by no more than the modify\-window |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
578 |
+timestamps as being equal if they differ by no more than the modify-window |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
579 |
value. This is normally 0 (for an exact match), but you may find it useful |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
580 |
to set this to a larger value in some situations. In particular, when |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
581 |
transferring to or from an MS Windows FAT filesystem (which represents |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
582 |
-times with a 2\-second resolution), \fB\-\-modify\-window=1\fP is useful |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
583 |
+times with a 2-second resolution), \fB\-\-modify\-window=1\fP is useful |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
584 |
(allowing times to differ by up to 1 second). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
585 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
586 |
.IP "\fB\-c, \-\-checksum\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
587 |
This changes the way rsync checks if the files have |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
588 |
been changed and are in need of a transfer. Without this option, rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
589 |
-uses a \(dq\&quick check\(dq\& that (by default) checks if each file\(cq\&s size and time |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
590 |
+uses a \(lqquick check\(rq that (by default) checks if each file's size and time |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
591 |
of last modification match between the sender and receiver. This option |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
592 |
-changes this to compare a 128\-bit checksum for each file that has a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
593 |
+changes this to compare a 128-bit checksum for each file that has a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
594 |
matching size. Generating the checksums means that both sides will expend |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
595 |
a lot of disk I/O reading all the data in the files in the transfer (and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
596 |
this is prior to any reading that will be done to transfer changed files), |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
597 |
so this can slow things down significantly. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
598 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
599 |
-The sending side generates its checksums while it is doing the file\-system |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
600 |
+The sending side generates its checksums while it is doing the file-system |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
601 |
scan that builds the list of the available files. The receiver generates |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
602 |
its checksums when it is scanning for changed files, and will checksum any |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
603 |
-file that has the same size as the corresponding sender\(cq\&s file: files with |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
604 |
+file that has the same size as the corresponding sender's file: files with |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
605 |
either a changed size or a changed checksum are selected for transfer. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
606 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
607 |
Note that rsync always verifies that each \fItransferred\fP file was |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
608 |
-correctly reconstructed on the receiving side by checking a whole\-file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
609 |
+correctly reconstructed on the receiving side by checking a whole-file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
610 |
checksum that is generated as the file is transferred, but that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
611 |
-automatic after\-the\-transfer verification has nothing to do with this |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
612 |
-option\(cq\&s before\-the\-transfer \(dq\&Does this file need to be updated?\(dq\& check. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
613 |
+automatic after-the-transfer verification has nothing to do with this |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
614 |
+option's before-the-transfer \(lqDoes this file need to be updated?\(rq check. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
615 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
616 |
For protocol 30 and beyond (first supported in 3.0.0), the checksum used is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
617 |
MD5. For older protocols, the checksum used is MD4. |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
618 |
@@ -657,25 +662,25 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
619 |
specified, in which case \fB\-r\fP is not implied. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
620 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
621 |
Note that \fB\-a\fP \fBdoes not preserve hardlinks\fP, because |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
622 |
-finding multiply\-linked files is expensive. You must separately |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
623 |
+finding multiply-linked files is expensive. You must separately |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
624 |
specify \fB\-H\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
625 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
626 |
.IP "\-\-no\-OPTION" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
627 |
You may turn off one or more implied options by prefixing |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
628 |
-the option name with \(dq\&no\-\(dq\&. Not all options may be prefixed with a \(dq\&no\-\(dq\&: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
629 |
+the option name with \(lqno\-\(rq. Not all options may be prefixed with a \(lqno\-\(rq: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
630 |
only options that are implied by other options (e.g. \fB\-\-no\-D\fP, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
631 |
\fB\-\-no\-perms\fP) or have different defaults in various circumstances |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
632 |
(e.g. \fB\-\-no\-whole\-file\fP, \fB\-\-no\-blocking\-io\fP, \fB\-\-no\-dirs\fP). You may |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
633 |
-specify either the short or the long option name after the \(dq\&no\-\(dq\& prefix |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
634 |
+specify either the short or the long option name after the \(lqno\-\(rq prefix |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
635 |
(e.g. \fB\-\-no\-R\fP is the same as \fB\-\-no\-relative\fP). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
636 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
637 |
-For example: if you want to use \fB\-a\fP (\fB\-\-archive\fP) but don\(cq\&t want |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
638 |
+For example: if you want to use \fB\-a\fP (\fB\-\-archive\fP) but don't want |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
639 |
\fB\-o\fP (\fB\-\-owner\fP), instead of converting \fB\-a\fP into \fB\-rlptgD\fP, you |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
640 |
could specify \fB\-a \-\-no\-o\fP (or \fB\-a \-\-no\-owner\fP). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
641 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
642 |
The order of the options is important: if you specify \fB\-\-no\-r \-a\fP, the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
643 |
\fB\-r\fP option would end up being turned on, the opposite of \fB\-a \-\-no\-r\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
644 |
-Note also that the side\-effects of the \fB\-\-files\-from\fP option are NOT |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
645 |
+Note also that the side-effects of the \fB\-\-files\-from\fP option are NOT |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
646 |
positional, as it affects the default state of several options and slightly |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
647 |
changes the meaning of \fB\-a\fP (see the \fB\-\-files\-from\fP option for more |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
648 |
details). |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
649 |
@@ -688,7 +693,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
650 |
incremental scan that uses much less memory than before and begins the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
651 |
transfer after the scanning of the first few directories have been |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
652 |
completed. This incremental scan only affects our recursion algorithm, and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
653 |
-does not change a non\-recursive transfer. It is also only possible when |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
654 |
+does not change a non-recursive transfer. It is also only possible when |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
655 |
both ends of the transfer are at least version 3.0.0. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
656 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
657 |
Some options require rsync to know the full file list, so these options |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
658 |
@@ -725,16 +730,16 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
659 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
660 |
then a file named /tmp/foo/bar/baz.c would be created on the remote |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
661 |
machine, preserving its full path. These extra path elements are called |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
662 |
-\(dq\&implied directories\(dq\& (i.e. the \(dq\&foo\(dq\& and the \(dq\&foo/bar\(dq\& directories in the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
663 |
+\(lqimplied directories\(rq (i.e. the \(lqfoo\(rq and the \(lqfoo/bar\(rq directories in the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
664 |
above example). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
665 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
666 |
Beginning with rsync 3.0.0, rsync always sends these implied directories as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
667 |
real directories in the file list, even if a path element is really a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
668 |
symlink on the sending side. This prevents some really unexpected |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
669 |
-behaviors when copying the full path of a file that you didn\(cq\&t realize had |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
670 |
-a symlink in its path. If you want to duplicate a server\-side symlink, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
671 |
+behaviors when copying the full path of a file that you didn't realize had |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
672 |
+a symlink in its path. If you want to duplicate a server-side symlink, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
673 |
include both the symlink via its path, and referent directory via its real |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
674 |
-path. If you\(cq\&re dealing with an older rsync on the sending side, you may |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
675 |
+path. If you're dealing with an older rsync on the sending side, you may |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
676 |
need to use the \fB\-\-no\-implied\-dirs\fP option. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
677 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
678 |
It is also possible to limit the amount of path information that is sent as |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
679 |
@@ -748,7 +753,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
680 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
681 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
682 |
That would create /tmp/bar/baz.c on the remote machine. (Note that the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
683 |
-dot must be followed by a slash, so \(dq\&/foo/.\(dq\& would not be abbreviated.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
684 |
+dot must be followed by a slash, so \(lq/foo/.\(rq would not be abbreviated.) |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
685 |
For older rsync versions, you would need to use a chdir to limit the |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
686 |
source path. For example, when pushing files: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
687 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
688 |
@@ -757,13 +762,13 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
689 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
690 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
691 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
692 |
-(Note that the parens put the two commands into a sub\-shell, so that the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
693 |
-\(dq\&cd\(dq\& command doesn\(cq\&t remain in effect for future commands.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
694 |
-If you\(cq\&re pulling files from an older rsync, use this idiom (but only |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
695 |
-for a non\-daemon transfer): |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
696 |
+(Note that the parens put the two commands into a sub-shell, so that the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
697 |
+\(lqcd\(rq command doesn't remain in effect for future commands.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
698 |
+If you're pulling files from an older rsync, use this idiom (but only |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
699 |
+for a non-daemon transfer): |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
700 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
701 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
702 |
-\f(CW rsync \-avR \-\-rsync\-path=\(dq\&cd /foo; rsync\(dq\& \e \fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
703 |
+\f(CW rsync \-avR \-\-rsync\-path="cd /foo; rsync" \e \fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
704 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
705 |
\f(CW remote:bar/baz.c /tmp/\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
706 |
.RE |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
707 |
@@ -779,14 +784,14 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
708 |
elements to have big differences, such as being a symlink to a directory on |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
709 |
the receiving side. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
710 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
711 |
-For instance, if a command\-line arg or a files\-from entry told rsync to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
712 |
-transfer the file \(dq\&path/foo/file\(dq\&, the directories \(dq\&path\(dq\& and \(dq\&path/foo\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
713 |
-are implied when \fB\-\-relative\fP is used. If \(dq\&path/foo\(dq\& is a symlink to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
714 |
-\(dq\&bar\(dq\& on the destination system, the receiving rsync would ordinarily |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
715 |
-delete \(dq\&path/foo\(dq\&, recreate it as a directory, and receive the file into |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
716 |
+For instance, if a command-line arg or a files-from entry told rsync to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
717 |
+transfer the file \(lqpath/foo/file\(rq, the directories \(lqpath\(rq and \(lqpath/foo\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
718 |
+are implied when \fB\-\-relative\fP is used. If \(lqpath/foo\(rq is a symlink to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
719 |
+\(lqbar\(rq on the destination system, the receiving rsync would ordinarily |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
720 |
+delete \(lqpath/foo\(rq, recreate it as a directory, and receive the file into |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
721 |
the new directory. With \fB\-\-no\-implied\-dirs\fP, the receiving rsync updates |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
722 |
-\(dq\&path/foo/file\(dq\& using the existing path elements, which means that the file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
723 |
-ends up being created in \(dq\&path/bar\(dq\&. Another way to accomplish this link |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
724 |
+\(lqpath/foo/file\(rq using the existing path elements, which means that the file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
725 |
+ends up being created in \(lqpath/bar\(rq. Another way to accomplish this link |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
726 |
preservation is to use the \fB\-\-keep\-dirlinks\fP option (which will also |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
727 |
affect symlinks to directories in the rest of the transfer). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
728 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
729 |
@@ -800,15 +805,15 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
730 |
backup file goes and what (if any) suffix gets appended using the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
731 |
\fB\-\-backup\-dir\fP and \fB\-\-suffix\fP options. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
732 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
733 |
-Note that if you don\(cq\&t specify \fB\-\-backup\-dir\fP, (1) the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
734 |
+Note that if you don't specify \fB\-\-backup\-dir\fP, (1) the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
735 |
\fB\-\-omit\-dir\-times\fP option will be implied, and (2) if \fB\-\-delete\fP is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
736 |
-also in effect (without \fB\-\-delete\-excluded\fP), rsync will add a \(dq\&protect\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
737 |
-filter\-rule for the backup suffix to the end of all your existing excludes |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
738 |
-(e.g. \fB\-f \(dq\&P *~\(dq\&\fP). This will prevent previously backed\-up files from being |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
739 |
+also in effect (without \fB\-\-delete\-excluded\fP), rsync will add a \(lqprotect\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
740 |
+filter-rule for the backup suffix to the end of all your existing excludes |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
741 |
+(e.g. \fB\-f "P *~"\fP). This will prevent previously backed-up files from being |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
742 |
deleted. Note that if you are supplying your own filter rules, you may |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
743 |
need to manually insert your own exclude/protect rule somewhere higher up |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
744 |
in the list so that it has a high enough priority to be effective (e.g., if |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
745 |
-your rules specify a trailing inclusion/exclusion of \(cq\&*\(cq\&, the auto\-added |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
746 |
+your rules specify a trailing inclusion/exclusion of \(oq*\(cq, the auto-added |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
747 |
rule would never be reached). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
748 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
749 |
.IP "\fB\-\-backup\-dir=DIR\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
750 |
@@ -821,20 +826,20 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
751 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
752 |
Note that if you specify a relative path, the backup directory will be |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
753 |
relative to the destination directory, so you probably want to specify |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
754 |
-either an absolute path or a path that starts with \(dq\&../\(dq\&. If an rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
755 |
-daemon is the receiver, the backup dir cannot go outside the module\(cq\&s path |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
756 |
+either an absolute path or a path that starts with \(lq../\(rq. If an rsync |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
757 |
+daemon is the receiver, the backup dir cannot go outside the module's path |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
758 |
hierarchy, so take extra care not to delete it or copy into it. |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
759 |
.IP |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
760 |
.IP "\fB\-\-suffix=SUFFIX\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
761 |
This option allows you to override the default |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
762 |
backup suffix used with the \fB\-\-backup\fP (\fB\-b\fP) option. The default suffix is a ~ |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
763 |
-if no \-\fB\-backup\-dir\fP was specified, otherwise it is an empty string. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
764 |
+if no \-\fB\-backup-dir\fP was specified, otherwise it is an empty string. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
765 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
766 |
.IP "\fB\-u, \-\-update\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
767 |
This forces rsync to skip any files which exist on |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
768 |
the destination and have a modified time that is newer than the source |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
769 |
file. (If an existing destination file has a modification time equal to the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
770 |
-source file\(cq\&s, it will be updated if the sizes are different.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
771 |
+source file's, it will be updated if the sizes are different.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
772 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
773 |
Note that this does not affect the copying of symlinks or other special |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
774 |
files. Also, a difference of file format between the sender and receiver |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
775 |
@@ -843,8 +848,8 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
776 |
where the destination has a file, the transfer would occur regardless of |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
777 |
the timestamps. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
778 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
779 |
-This option is a transfer rule, not an exclude, so it doesn\(cq\&t affect the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
780 |
-data that goes into the file\-lists, and thus it doesn\(cq\&t affect deletions. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
781 |
+This option is a transfer rule, not an exclude, so it doesn't affect the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
782 |
+data that goes into the file-lists, and thus it doesn't affect deletions. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
783 |
It just limits the files that the receiver requests to be transferred. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
784 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
785 |
.IP "\fB\-\-inplace\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
786 |
@@ -859,14 +864,14 @@ |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
787 |
.IP o |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
788 |
Hard links are not broken. This means the new data will be visible |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
789 |
through other hard links to the destination file. Moreover, attempts to |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
790 |
-copy differing source files onto a multiply\-linked destination file will |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
791 |
-result in a \(dq\&tug of war\(dq\& with the destination data changing back and forth. |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
792 |
+copy differing source files onto a multiply-linked destination file will |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
793 |
+result in a \(lqtug of war\(rq with the destination data changing back and forth. |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
794 |
.IP o |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
795 |
In\-use binaries cannot be updated (either the OS will prevent this from |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
796 |
-happening, or binaries that attempt to swap\-in their data will misbehave or |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
797 |
+happening, or binaries that attempt to swap-in their data will misbehave or |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
798 |
crash). |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
799 |
.IP o |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
800 |
-The file\(cq\&s data will be in an inconsistent state during the transfer |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
801 |
+The file's data will be in an inconsistent state during the transfer |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
802 |
and will be left that way if the transfer is interrupted or if an update |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
803 |
fails. |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
804 |
.IP o |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
805 |
@@ -874,7 +879,7 @@ |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
806 |
can update any file, a normal user needs to be granted write permission for |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
807 |
the open of the file for writing to be successful. |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
808 |
.IP o |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
809 |
-The efficiency of rsync\(cq\&s delta\-transfer algorithm may be reduced if |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
810 |
+The efficiency of rsync's delta-transfer algorithm may be reduced if |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
811 |
some data in the destination file is overwritten before it can be copied to |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
812 |
a position later in the file. This does not apply if you use \fB\-\-backup\fP, |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
813 |
since rsync is smart enough to use the backup file as the basis file for the |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
814 |
@@ -885,9 +890,9 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
815 |
WARNING: you should not use this option to update files that are being |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
816 |
accessed by others, so be careful when choosing to use this for a copy. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
817 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
818 |
-This option is useful for transferring large files with block\-based changes |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
819 |
+This option is useful for transferring large files with block-based changes |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
820 |
or appended data, and also on systems that are disk bound, not network |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
821 |
-bound. It can also help keep a copy\-on\-write filesystem snapshot from |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
822 |
+bound. It can also help keep a copy-on-write filesystem snapshot from |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
823 |
diverging the entire contents of a file that only has minor changes. |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
824 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
825 |
The option implies \fB\-\-partial\fP (since an interrupted transfer does not delete |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
826 |
@@ -901,18 +906,18 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
827 |
the receiving side is identical with the start of the file on the sending |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
828 |
side. If a file needs to be transferred and its size on the receiver is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
829 |
the same or longer than the size on the sender, the file is skipped. This |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
830 |
-does not interfere with the updating of a file\(cq\&s non\-content attributes |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
831 |
+does not interfere with the updating of a file's non-content attributes |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
832 |
(e.g. permissions, ownership, etc.) when the file does not need to be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
833 |
-transferred, nor does it affect the updating of any non\-regular files. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
834 |
+transferred, nor does it affect the updating of any non-regular files. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
835 |
Implies \fB\-\-inplace\fP, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
836 |
but does not conflict with \fB\-\-sparse\fP (since it is always extending a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
837 |
-file\(cq\&s length). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
838 |
+file's length). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
839 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
840 |
.IP "\fB\-\-append\-verify\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
841 |
This works just like the \fB\-\-append\fP option, but |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
842 |
-the existing data on the receiving side is included in the full\-file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
843 |
+the existing data on the receiving side is included in the full-file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
844 |
checksum verification step, which will cause a file to be resent if the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
845 |
-final verification step fails (rsync uses a normal, non\-appending |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
846 |
+final verification step fails (rsync uses a normal, non-appending |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
847 |
\fB\-\-inplace\fP transfer for the resend). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
848 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
849 |
Note: prior to rsync 3.0.0, the \fB\-\-append\fP option worked like |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
850 |
@@ -922,21 +927,21 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
851 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
852 |
.IP "\fB\-d, \-\-dirs\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
853 |
Tell the sending side to include any directories that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
854 |
-are encountered. Unlike \fB\-\-recursive\fP, a directory\(cq\&s contents are not copied |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
855 |
-unless the directory name specified is \(dq\&.\(dq\& or ends with a trailing slash |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
856 |
-(e.g. \(dq\&.\(dq\&, \(dq\&dir/.\(dq\&, \(dq\&dir/\(dq\&, etc.). Without this option or the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
857 |
+are encountered. Unlike \fB\-\-recursive\fP, a directory's contents are not copied |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
858 |
+unless the directory name specified is \(lq.\(rq or ends with a trailing slash |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
859 |
+(e.g. \(lq.\(rq, \(lqdir/.\(rq, \(lqdir/\(rq, etc.). Without this option or the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
860 |
\fB\-\-recursive\fP option, rsync will skip all directories it encounters (and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
861 |
output a message to that effect for each one). If you specify both |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
862 |
\fB\-\-dirs\fP and \fB\-\-recursive\fP, \fB\-\-recursive\fP takes precedence. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
863 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
864 |
The \fB\-\-dirs\fP option is implied by the \fB\-\-files\-from\fP option |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
865 |
or the \fB\-\-list\-only\fP option (including an implied |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
866 |
-\fB\-\-list\-only\fP usage) if \fB\-\-recursive\fP wasn\(cq\&t specified (so that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
867 |
+\fB\-\-list\-only\fP usage) if \fB\-\-recursive\fP wasn't specified (so that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
868 |
directories are seen in the listing). Specify \fB\-\-no\-dirs\fP (or \fB\-\-no\-d\fP) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
869 |
if you want to turn this off. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
870 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
871 |
-There is also a backward\-compatibility helper option, \fB\-\-old\-dirs\fP (or |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
872 |
-\fB\-\-old\-d\fP) that tells rsync to use a hack of \(dq\&\-r \-\-exclude=\(cq\&/*/*\(cq\&\(dq\& to get |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
873 |
+There is also a backward-compatibility helper option, \fB\-\-old\-dirs\fP (or |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
874 |
+\fB\-\-old\-d\fP) that tells rsync to use a hack of \(lq\-r \-\-exclude='/*/*'\(rq to get |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
875 |
an older rsync to list a single directory without recursing. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
876 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
877 |
.IP "\fB\-l, \-\-links\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
878 |
@@ -946,12 +951,12 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
879 |
.IP "\fB\-L, \-\-copy\-links\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
880 |
When symlinks are encountered, the item that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
881 |
they point to (the referent) is copied, rather than the symlink. In older |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
882 |
-versions of rsync, this option also had the side\-effect of telling the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
883 |
+versions of rsync, this option also had the side-effect of telling the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
884 |
receiving side to follow symlinks, such as symlinks to directories. In a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
885 |
-modern rsync such as this one, you\(cq\&ll need to specify \fB\-\-keep\-dirlinks\fP (\fB\-K\fP) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
886 |
+modern rsync such as this one, you'll need to specify \fB\-\-keep\-dirlinks\fP (\fB\-K\fP) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
887 |
to get this extra behavior. The only exception is when sending files to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
888 |
-an rsync that is too old to understand \fB\-K\fP \-\- in that case, the \fB\-L\fP option |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
889 |
-will still have the side\-effect of \fB\-K\fP on that older receiving rsync. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
890 |
+an rsync that is too old to understand \fB\-K\fP \(em in that case, the \fB\-L\fP option |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
891 |
+will still have the side-effect of \fB\-K\fP on that older receiving rsync. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
892 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
893 |
.IP "\fB\-\-copy\-unsafe\-links\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
894 |
This tells rsync to copy the referent of |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
895 |
@@ -969,7 +974,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
896 |
.IP "\fB\-k, \-\-copy\-dirlinks\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
897 |
This option causes the sending side to treat |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
898 |
a symlink to a directory as though it were a real directory. This is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
899 |
-useful if you don\(cq\&t want symlinks to non\-directories to be affected, as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
900 |
+useful if you don't want symlinks to non-directories to be affected, as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
901 |
they would be using \fB\-\-copy\-links\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
902 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
903 |
Without this option, if the sending side has replaced a directory with a |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
904 |
@@ -986,26 +991,26 @@ |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
905 |
to make the paths match up right. For example: |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
906 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
907 |
.RS |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
908 |
-\f(CWrsync \-r \-\-relative src/./ src/./follow\-me/ dest/\fP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
909 |
+\f(CWrsync \-r \-\-relative src/./ src/./follo-me/ dest/\fP |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
910 |
.RE |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
911 |
|
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
912 |
.IP |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
913 |
This works because rsync calls \fBlstat\fP(2) on the source arg as given, and the |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
914 |
trailing slash makes \fBlstat\fP(2) follow the symlink, giving rise to a directory |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
915 |
-in the file\-list which overrides the symlink found during the scan of \(dq\&src/./\(dq\&. |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
916 |
+in the file-list which overrides the symlink found during the scan of \(lqsrc/./\(rq. |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
917 |
.IP |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
918 |
.IP "\fB\-K, \-\-keep\-dirlinks\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
919 |
This option causes the receiving side to treat |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
920 |
a symlink to a directory as though it were a real directory, but only if it |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
921 |
matches a real directory from the sender. Without this option, the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
922 |
-receiver\(cq\&s symlink would be deleted and replaced with a real directory. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
923 |
+receiver's symlink would be deleted and replaced with a real directory. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
924 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
925 |
-For example, suppose you transfer a directory \(dq\&foo\(dq\& that contains a file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
926 |
-\(dq\&file\(dq\&, but \(dq\&foo\(dq\& is a symlink to directory \(dq\&bar\(dq\& on the receiver. Without |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
927 |
-\fB\-\-keep\-dirlinks\fP, the receiver deletes symlink \(dq\&foo\(dq\&, recreates it as a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
928 |
+For example, suppose you transfer a directory \(lqfoo\(rq that contains a file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
929 |
+\(lqfile\(rq, but \(lqfoo\(rq is a symlink to directory \(lqbar\(rq on the receiver. Without |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
930 |
+\fB\-\-keep\-dirlinks\fP, the receiver deletes symlink \(lqfoo\(rq, recreates it as a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
931 |
directory, and receives the file into the new directory. With |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
932 |
-\fB\-\-keep\-dirlinks\fP, the receiver keeps the symlink and \(dq\&file\(dq\& ends up in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
933 |
-\(dq\&bar\(dq\&. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
934 |
+\fB\-\-keep\-dirlinks\fP, the receiver keeps the symlink and \(lqfile\(rq ends up in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
935 |
+\(lqbar\(rq. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
936 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
937 |
One note of caution: if you use \fB\-\-keep\-dirlinks\fP, you must trust all |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
938 |
the symlinks in the copy! If it is possible for an untrusted user to |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
939 |
@@ -1018,7 +1023,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
940 |
See also \fB\-\-copy\-dirlinks\fP for an analogous option for the sending side. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
941 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
942 |
.IP "\fB\-H, \-\-hard\-links\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
943 |
-This tells rsync to look for hard\-linked files in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
944 |
+This tells rsync to look for hard-linked files in |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
945 |
the source and link together the corresponding files on the destination. |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
946 |
Without this option, hard\-linked files in the source are treated |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
947 |
as though they were separate files. |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
948 |
@@ -1029,10 +1034,10 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
949 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
950 |
.RS |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
951 |
.IP o |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
952 |
-If the destination contains extraneous hard\-links (more linking than |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
953 |
+If the destination contains extraneous hard-links (more linking than |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
954 |
what is present in the source file list), the copying algorithm will not |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
955 |
break them explicitly. However, if one or more of the paths have content |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
956 |
-differences, the normal file\-update process will break those extra links |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
957 |
+differences, the normal file-update process will break those extra links |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
958 |
(unless you are using the \fB\-\-inplace\fP option). |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
959 |
.IP o |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
960 |
If you specify a \fB\-\-link\-dest\fP directory that contains hard links, |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
961 |
@@ -1043,7 +1048,7 @@ |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
962 |
|
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
963 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
964 |
Note that rsync can only detect hard links between files that are inside |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
965 |
-the transfer set. If rsync updates a file that has extra hard\-link |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
966 |
+the transfer set. If rsync updates a file that has extra hard-link |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
967 |
connections to files outside the transfer, that linkage will be broken. If |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
968 |
you are tempted to use the \fB\-\-inplace\fP option to avoid this breakage, be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
969 |
very careful that you know how your files are being updated so that you are |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
970 |
@@ -1051,11 +1056,11 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
971 |
see the \fB\-\-inplace\fP option for more caveats). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
972 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
973 |
If incremental recursion is active (see \fB\-\-recursive\fP), rsync may transfer |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
974 |
-a missing hard\-linked file before it finds that another link for that contents |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
975 |
+a missing hard-linked file before it finds that another link for that contents |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
976 |
exists elsewhere in the hierarchy. This does not affect the accuracy of |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
977 |
-the transfer (i.e. which files are hard\-linked together), just its efficiency |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
978 |
-(i.e. copying the data for a new, early copy of a hard\-linked file that could |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
979 |
-have been found later in the transfer in another member of the hard\-linked |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
980 |
+the transfer (i.e. which files are hard-linked together), just its efficiency |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
981 |
+(i.e. copying the data for a new, early copy of a hard-linked file that could |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
982 |
+have been found later in the transfer in another member of the hard-linked |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
983 |
set of files). One way to avoid this inefficiency is to disable |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
984 |
incremental recursion using the \fB\-\-no\-inc\-recursive\fP option. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
985 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
986 |
@@ -1073,24 +1078,24 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
987 |
permissions, though the \fB\-\-executability\fP option might change just |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
988 |
the execute permission for the file. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
989 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
990 |
-New files get their \(dq\&normal\(dq\& permission bits set to the source |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
991 |
-file\(cq\&s permissions masked with the receiving directory\(cq\&s default |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
992 |
-permissions (either the receiving process\(cq\&s umask, or the permissions |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
993 |
-specified via the destination directory\(cq\&s default ACL), and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
994 |
+New files get their \(lqnormal\(rq permission bits set to the source |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
995 |
+file's permissions masked with the receiving directory's default |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
996 |
+permissions (either the receiving process's umask, or the permissions |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
997 |
+specified via the destination directory's default ACL), and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
998 |
their special permission bits disabled except in the case where a new |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
999 |
directory inherits a setgid bit from its parent directory. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1000 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1001 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1002 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1003 |
Thus, when \fB\-\-perms\fP and \fB\-\-executability\fP are both disabled, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1004 |
-rsync\(cq\&s behavior is the same as that of other file\-copy utilities, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1005 |
+rsync's behavior is the same as that of other file-copy utilities, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1006 |
such as \fBcp\fP(1) and \fBtar\fP(1). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1007 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1008 |
In summary: to give destination files (both old and new) the source |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1009 |
-permissions, use \fB\-\-perms\fP. To give new files the destination\-default |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1010 |
+permissions, use \fB\-\-perms\fP. To give new files the destination-default |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1011 |
permissions (while leaving existing files unchanged), make sure that the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1012 |
\fB\-\-perms\fP option is off and use \fB\-\-chmod=ugo=rwX\fP (which ensures that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1013 |
-all non\-masked bits get enabled). If you\(cq\&d care to make this latter |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1014 |
+all non-masked bits get enabled). If you'd care to make this latter |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1015 |
behavior easier to type, you could define a popt alias for it, such as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1016 |
putting this line in the file ~/.popt (the following defines the \fB\-Z\fP option, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1017 |
and includes \-\-no\-g to use the default group of the destination dir): |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1018 |
@@ -1107,34 +1112,34 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1019 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1020 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1021 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1022 |
-(Caveat: make sure that \fB\-a\fP does not follow \fB\-Z\fP, or it will re\-enable |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1023 |
-the two \(dq\&\-\-no\-*\(dq\& options mentioned above.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1024 |
+(Caveat: make sure that \fB\-a\fP does not follow \fB\-Z\fP, or it will re-enable |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1025 |
+the two \(lq\-\-no\-*\(rq options mentioned above.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1026 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1027 |
-The preservation of the destination\(cq\&s setgid bit on newly\-created |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1028 |
+The preservation of the destination's setgid bit on newly-created |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1029 |
directories when \fB\-\-perms\fP is off was added in rsync 2.6.7. Older rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1030 |
versions erroneously preserved the three special permission bits for |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1031 |
-newly\-created files when \fB\-\-perms\fP was off, while overriding the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1032 |
-destination\(cq\&s setgid bit setting on a newly\-created directory. Default ACL |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1033 |
+newly-created files when \fB\-\-perms\fP was off, while overriding the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1034 |
+destination's setgid bit setting on a newly-created directory. Default ACL |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1035 |
observance was added to the ACL patch for rsync 2.6.7, so older (or |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1036 |
-non\-ACL\-enabled) rsyncs use the umask even if default ACLs are present. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1037 |
+non-ACL-enabled) rsyncs use the umask even if default ACLs are present. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1038 |
(Keep in mind that it is the version of the receiving rsync that affects |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1039 |
these behaviors.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1040 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1041 |
.IP "\fB\-E, \-\-executability\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1042 |
This option causes rsync to preserve the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1043 |
-executability (or non\-executability) of regular files when \fB\-\-perms\fP is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1044 |
+executability (or non-executability) of regular files when \fB\-\-perms\fP is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1045 |
not enabled. A regular file is considered to be executable if at least one |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1046 |
-\(cq\&x\(cq\& is turned on in its permissions. When an existing destination file\(cq\&s |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1047 |
+\(oqx\(cq is turned on in its permissions. When an existing destination file's |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1048 |
executability differs from that of the corresponding source file, rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1049 |
-modifies the destination file\(cq\&s permissions as follows: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1050 |
+modifies the destination file's permissions as follows: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1051 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1052 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1053 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1054 |
-To make a file non\-executable, rsync turns off all its \(cq\&x\(cq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1055 |
+To make a file non-executable, rsync turns off all its \(oqx\(cq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1056 |
permissions. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1057 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1058 |
-To make a file executable, rsync turns on each \(cq\&x\(cq\& permission that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1059 |
-has a corresponding \(cq\&r\(cq\& permission enabled. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1060 |
+To make a file executable, rsync turns on each \(oqx\(cq permission that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1061 |
+has a corresponding \(oqr\(cq permission enabled. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1062 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1063 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1064 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1065 |
@@ -1153,32 +1158,32 @@ |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1066 |
This option causes rsync to update the destination |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1067 |
extended attributes to be the same as the source ones. |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1068 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1069 |
-For systems that support extended\-attribute namespaces, a copy being done by a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1070 |
-super\-user copies all namespaces except system.*. A normal user only copies |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1071 |
-the user.* namespace. To be able to backup and restore non\-user namespaces as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1072 |
+For systems that support extended-attribute namespaces, a copy being done by a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1073 |
+super-user copies all namespaces except system.*. A normal user only copies |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1074 |
+the user.* namespace. To be able to backup and restore non-user namespaces as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1075 |
a normal user, see the \fB\-\-fake\-super\fP option. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1076 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1077 |
Note that this option does not copy rsyncs special xattr values (e.g. those |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1078 |
used by \fB\-\-fake\-super\fP) unless you repeat the option (e.g. \-XX). This |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1079 |
-\(dq\© all xattrs\(dq\& mode cannot be used with \fB\-\-fake\-super\fP. |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1080 |
+\(lqcopy all xattrs\(rq mode cannot be used with \fB\-\-fake\-super\fP. |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1081 |
.IP |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1082 |
.IP "\fB\-\-chmod\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1083 |
This option tells rsync to apply one or more |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1084 |
-comma\-separated \(dq\&chmod\(dq\& modes to the permission of the files in the |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1085 |
+comma-separated \(lqchmod\(rq modes to the permission of the files in the |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1086 |
transfer. The resulting value is treated as though it were the permissions |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1087 |
that the sending side supplied for the file, which means that this option |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1088 |
can seem to have no effect on existing files if \fB\-\-perms\fP is not enabled. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1089 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1090 |
In addition to the normal parsing rules specified in the \fBchmod\fP(1) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1091 |
manpage, you can specify an item that should only apply to a directory by |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1092 |
-prefixing it with a \(cq\&D\(cq\&, or specify an item that should only apply to a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1093 |
-file by prefixing it with a \(cq\&F\(cq\&. For example, the following will ensure |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1094 |
-that all directories get marked set\-gid, that no files are other\-writable, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1095 |
-that both are user\-writable and group\-writable, and that both have |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1096 |
+prefixing it with a 'D', or specify an item that should only apply to a |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1097 |
+file by prefixing it with a 'F'. For example, the following will ensure |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1098 |
+that all directories get marked set-gid, that no files are other-writable, |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1099 |
+that both are user\-writable and group-writable, and that both have |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1100 |
consistent executability across all bits: |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1101 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1102 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1103 |
-\-\-chmod=Dg+s,ug+w,Fo\-w,+X |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1104 |
+\-\-chmod=Dg+s,ug+w,Fo-w,+X |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1105 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1106 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1107 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1108 |
@@ -1191,7 +1196,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1109 |
.IP "\fB\-o, \-\-owner\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1110 |
This option causes rsync to set the owner of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1111 |
destination file to be the same as the source file, but only if the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1112 |
-receiving rsync is being run as the super\-user (see also the \fB\-\-super\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1113 |
+receiving rsync is being run as the super-user (see also the \fB\-\-super\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1114 |
and \fB\-\-fake\-super\fP options). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1115 |
Without this option, the owner of new and/or transferred files are set to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1116 |
the invoking user on the receiving side. |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1117 |
@@ -1203,7 +1208,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1118 |
.IP "\fB\-g, \-\-group\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1119 |
This option causes rsync to set the group of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1120 |
destination file to be the same as the source file. If the receiving |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1121 |
-program is not running as the super\-user (or if \fB\-\-no\-super\fP was |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1122 |
+program is not running as the super-user (or if \fB\-\-no\-super\fP was |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1123 |
specified), only groups that the invoking user on the receiving side |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1124 |
is a member of will be preserved. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1125 |
Without this option, the group is set to the default group of the invoking |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1126 |
@@ -1217,7 +1222,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1127 |
This option causes rsync to transfer character and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1128 |
block device files to the remote system to recreate these devices. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1129 |
This option has no effect if the receiving rsync is not run as the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1130 |
-super\-user (see also the \fB\-\-super\fP and \fB\-\-fake\-super\fP options). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1131 |
+super-user (see also the \fB\-\-super\fP and \fB\-\-fake\-super\fP options). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1132 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1133 |
.IP "\fB\-\-specials\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1134 |
This option causes rsync to transfer special files |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1135 |
@@ -1232,8 +1237,8 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1136 |
option is not used, the optimization that excludes files that have not been |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1137 |
modified cannot be effective; in other words, a missing \fB\-t\fP or \fB\-a\fP will |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1138 |
cause the next transfer to behave as if it used \fB\-I\fP, causing all files to be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1139 |
-updated (though rsync\(cq\&s delta\-transfer algorithm will make the update fairly efficient |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1140 |
-if the files haven\(cq\&t actually changed, you\(cq\&re much better off using \fB\-t\fP). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1141 |
+updated (though rsync's delta-transfer algorithm will make the update fairly efficient |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1142 |
+if the files haven't actually changed, you're much better off using \fB\-t\fP). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1143 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1144 |
.IP "\fB\-O, \-\-omit\-dir\-times\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1145 |
This tells rsync to omit directories when |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1146 |
@@ -1242,58 +1247,58 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1147 |
This option is inferred if you use \fB\-\-backup\fP without \fB\-\-backup\-dir\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1148 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1149 |
.IP "\fB\-\-super\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1150 |
-This tells the receiving side to attempt super\-user |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1151 |
-activities even if the receiving rsync wasn\(cq\&t run by the super\-user. These |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1152 |
+This tells the receiving side to attempt super-user |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1153 |
+activities even if the receiving rsync wasn't run by the super-user. These |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1154 |
activities include: preserving users via the \fB\-\-owner\fP option, preserving |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1155 |
-all groups (not just the current user\(cq\&s groups) via the \fB\-\-groups\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1156 |
+all groups (not just the current user's groups) via the \fB\-\-groups\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1157 |
option, and copying devices via the \fB\-\-devices\fP option. This is useful |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1158 |
-for systems that allow such activities without being the super\-user, and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1159 |
-also for ensuring that you will get errors if the receiving side isn\(cq\&t |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1160 |
-being run as the super\-user. To turn off super\-user activities, the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1161 |
-super\-user can use \fB\-\-no\-super\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1162 |
+for systems that allow such activities without being the super-user, and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1163 |
+also for ensuring that you will get errors if the receiving side isn't |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1164 |
+being run as the super-user. To turn off super-user activities, the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1165 |
+super-user can use \fB\-\-no\-super\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1166 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1167 |
.IP "\fB\-\-fake\-super\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1168 |
When this option is enabled, rsync simulates |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1169 |
-super\-user activities by saving/restoring the privileged attributes via |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1170 |
+super-user activities by saving/restoring the privileged attributes via |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1171 |
special extended attributes that are attached to each file (as needed). This |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1172 |
-includes the file\(cq\&s owner and group (if it is not the default), the file\(cq\&s |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1173 |
+includes the file's owner and group (if it is not the default), the file's |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1174 |
device info (device & special files are created as empty text files), and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1175 |
-any permission bits that we won\(cq\&t allow to be set on the real file (e.g. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1176 |
-the real file gets u\-s,g\-s,o\-t for safety) or that would limit the owner\(cq\&s |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1177 |
-access (since the real super\-user can always access/change a file, the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1178 |
+any permission bits that we won't allow to be set on the real file (e.g. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1179 |
+the real file gets u-s,g-s,o-t for safety) or that would limit the owner's |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1180 |
+access (since the real super-user can always access/change a file, the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1181 |
files we create can always be accessed/changed by the creating user). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1182 |
-This option also handles ACLs (if \fB\-\-acls\fP was specified) and non\-user |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1183 |
+This option also handles ACLs (if \fB\-\-acls\fP was specified) and non-user |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1184 |
extended attributes (if \fB\-\-xattrs\fP was specified). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1185 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1186 |
-This is a good way to backup data without using a super\-user, and to store |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1187 |
+This is a good way to backup data without using a super-user, and to store |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1188 |
ACLs from incompatible systems. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1189 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1190 |
The \fB\-\-fake\-super\fP option only affects the side where the option is used. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1191 |
-To affect the remote side of a remote\-shell connection, specify an rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1192 |
+To affect the remote side of a remote-shell connection, specify an rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1193 |
path: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1194 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1195 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1196 |
-\f(CW rsync \-av \-\-rsync\-path=\(dq\&rsync \-\-fake\-super\(dq\& /src/ host:/dest/\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1197 |
+\f(CW rsync \-av \-\-rsync\-path="rsync \-\-fake\-super" /src/ host:/dest/\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1198 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1199 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1200 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1201 |
-Since there is only one \(dq\&side\(dq\& in a local copy, this option affects both |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1202 |
-the sending and receiving of files. You\(cq\&ll need to specify a copy using |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1203 |
-\(dq\&localhost\(dq\& if you need to avoid this, possibly using the \(dq\&lsh\(dq\& shell |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1204 |
+Since there is only one \(lqside\(rq in a local copy, this option affects both |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1205 |
+the sending and receiving of files. You'll need to specify a copy using |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1206 |
+\(lqlocalhost\(rq if you need to avoid this, possibly using the \(lqlsh\(rq shell |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1207 |
script (from the support directory) as a substitute for an actual remote |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1208 |
shell (see \fB\-\-rsh\fP). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1209 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1210 |
This option is overridden by both \fB\-\-super\fP and \fB\-\-no\-super\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1211 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1212 |
-See also the \(dq\&fake super\(dq\& setting in the daemon\(cq\&s rsyncd.conf file. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1213 |
+See also the \(lqfake super\(rq setting in the daemon's rsyncd.conf file. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1214 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1215 |
.IP "\fB\-S, \-\-sparse\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1216 |
Try to handle sparse files efficiently so they take |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1217 |
-up less space on the destination. Conflicts with \fB\-\-inplace\fP because it\(cq\&s |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1218 |
+up less space on the destination. Conflicts with \fB\-\-inplace\fP because it's |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1219 |
not possible to overwrite data in a sparse fashion. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1220 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1221 |
.IP "\fB\-n, \-\-dry\-run\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1222 |
-This makes rsync perform a trial run that doesn\(cq\&t |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1223 |
+This makes rsync perform a trial run that doesn't |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1224 |
make any changes (and produces mostly the same output as a real run). It |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1225 |
is most commonly used in combination with the \fB\-v, \-\-verbose\fP and/or |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1226 |
\fB\-i, \-\-itemize\-changes\fP options to see what an rsync command is going |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1227 |
@@ -1301,50 +1306,50 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1228 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1229 |
The output of \fB\-\-itemize\-changes\fP is supposed to be exactly the same on a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1230 |
dry run and a subsequent real run (barring intentional trickery and system |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1231 |
-call failures); if it isn\(cq\&t, that\(cq\&s a bug. Other output should be mostly |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1232 |
+call failures); if it isn't, that's a bug. Other output should be mostly |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1233 |
unchanged, but may differ in some areas. Notably, a dry run does not |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1234 |
send the actual data for file transfers, so \fB\-\-progress\fP has no effect, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1235 |
-the \(dq\&bytes sent\(dq\&, \(dq\&bytes received\(dq\&, \(dq\&literal data\(dq\&, and \(dq\&matched data\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1236 |
-statistics are too small, and the \(dq\&speedup\(dq\& value is equivalent to a run |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1237 |
+the \(lqbytes sent\(rq, \(lqbytes received\(rq, \(lqliteral data\(rq, and \(lqmatched data\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1238 |
+statistics are too small, and the \(lqspeedup\(rq value is equivalent to a run |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1239 |
where no file transfers were needed. |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1240 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1241 |
.IP "\fB\-W, \-\-whole\-file\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1242 |
-With this option rsync\(cq\&s delta\-transfer algorithm |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1243 |
-is not used and the whole file is sent as\-is instead. The transfer may be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1244 |
+With this option rsync's delta-transfer algorithm |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1245 |
+is not used and the whole file is sent as-is instead. The transfer may be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1246 |
faster if this option is used when the bandwidth between the source and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1247 |
destination machines is higher than the bandwidth to disk (especially when the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1248 |
-\(dq\&disk\(dq\& is actually a networked filesystem). This is the default when both |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1249 |
+\(lqdisk\(rq is actually a networked filesystem). This is the default when both |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1250 |
the source and destination are specified as local paths, but only if no |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1251 |
-batch\-writing option is in effect. |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1252 |
+batch-writing option is in effect. |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1253 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1254 |
.IP "\fB\-x, \-\-one\-file\-system\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1255 |
This tells rsync to avoid crossing a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1256 |
-filesystem boundary when recursing. This does not limit the user\(cq\&s ability |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1257 |
-to specify items to copy from multiple filesystems, just rsync\(cq\&s recursion |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1258 |
+filesystem boundary when recursing. This does not limit the user's ability |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1259 |
+to specify items to copy from multiple filesystems, just rsync's recursion |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1260 |
through the hierarchy of each directory that the user specified, and also |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1261 |
the analogous recursion on the receiving side during deletion. Also keep |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1262 |
-in mind that rsync treats a \(dq\&bind\(dq\& mount to the same device as being on the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1263 |
+in mind that rsync treats a \(lqbind\(rq mount to the same device as being on the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1264 |
same filesystem. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1265 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1266 |
-If this option is repeated, rsync omits all mount\-point directories from |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1267 |
-the copy. Otherwise, it includes an empty directory at each mount\-point it |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1268 |
+If this option is repeated, rsync omits all mount-point directories from |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1269 |
+the copy. Otherwise, it includes an empty directory at each mount-point it |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1270 |
encounters (using the attributes of the mounted directory because those of |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1271 |
-the underlying mount\-point directory are inaccessible). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1272 |
+the underlying mount-point directory are inaccessible). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1273 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1274 |
If rsync has been told to collapse symlinks (via \fB\-\-copy\-links\fP or |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1275 |
\fB\-\-copy\-unsafe\-links\fP), a symlink to a directory on another device is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1276 |
-treated like a mount\-point. Symlinks to non\-directories are unaffected |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1277 |
+treated like a mount-point. Symlinks to non-directories are unaffected |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1278 |
by this option. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1279 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1280 |
-.IP "\fB\-\-existing, \-\-ignore\-non\-existing\fP" |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1281 |
+.IP "\fB\-\-existing, \-\-ignore-non-existing\fP" |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1282 |
This tells rsync to skip |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1283 |
creating files (including directories) that do not exist |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1284 |
yet on the destination. If this option is |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1285 |
combined with the \fB\-\-ignore\-existing\fP option, no files will be updated |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1286 |
(which can be useful if all you want to do is delete extraneous files). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1287 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1288 |
-This option is a transfer rule, not an exclude, so it doesn\(cq\&t affect the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1289 |
-data that goes into the file\-lists, and thus it doesn\(cq\&t affect deletions. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1290 |
+This option is a transfer rule, not an exclude, so it doesn't affect the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1291 |
+data that goes into the file-lists, and thus it doesn't affect deletions. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1292 |
It just limits the files that the receiver requests to be transferred. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1293 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1294 |
.IP "\fB\-\-ignore\-existing\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1295 |
@@ -1352,41 +1357,41 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1296 |
already exist on the destination (this does \fInot\fP ignore existing |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1297 |
directories, or nothing would get done). See also \fB\-\-existing\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1298 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1299 |
-This option is a transfer rule, not an exclude, so it doesn\(cq\&t affect the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1300 |
-data that goes into the file\-lists, and thus it doesn\(cq\&t affect deletions. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1301 |
+This option is a transfer rule, not an exclude, so it doesn't affect the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1302 |
+data that goes into the file-lists, and thus it doesn't affect deletions. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1303 |
It just limits the files that the receiver requests to be transferred. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1304 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1305 |
This option can be useful for those doing backups using the \fB\-\-link\-dest\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1306 |
option when they need to continue a backup run that got interrupted. Since |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1307 |
a \fB\-\-link\-dest\fP run is copied into a new directory hierarchy (when it is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1308 |
used properly), using \fB\-\-ignore existing\fP will ensure that the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1309 |
-already\-handled files don\(cq\&t get tweaked (which avoids a change in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1310 |
+already-handled files don't get tweaked (which avoids a change in |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1311 |
permissions on the hard\-linked files). This does mean that this option |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1312 |
is only looking at the existing files in the destination hierarchy itself. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1313 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1314 |
.IP "\fB\-\-remove\-source\-files\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1315 |
This tells rsync to remove from the sending |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1316 |
-side the files (meaning non\-directories) that are a part of the transfer |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1317 |
+side the files (meaning non-directories) that are a part of the transfer |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1318 |
and have been successfully duplicated on the receiving side. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1319 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1320 |
Note that you should only use this option on source files that are quiescent. |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1321 |
If you are using this to move files that show up in a particular directory over |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1322 |
to another host, make sure that the finished files get renamed into the source |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1323 |
-directory, not directly written into it, so that rsync can\(cq\&t possibly transfer |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1324 |
-a file that is not yet fully written. If you can\(cq\&t first write the files into |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1325 |
+directory, not directly written into it, so that rsync can't possibly transfer |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1326 |
+a file that is not yet fully written. If you can't first write the files into |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1327 |
a different directory, you should use a naming idiom that lets rsync avoid |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1328 |
-transferring files that are not yet finished (e.g. name the file \(dq\&foo.new\(dq\& when |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1329 |
-it is written, rename it to \(dq\&foo\(dq\& when it is done, and then use the option |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1330 |
+transferring files that are not yet finished (e.g. name the file \(lqfoo.new\(rq when |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1331 |
+it is written, rename it to \(lqfoo\(rq when it is done, and then use the option |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1332 |
\fB\-\-exclude='\&*.new'\&\fP for the rsync transfer). |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1333 |
.IP |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1334 |
.IP "\fB\-\-delete\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1335 |
This tells rsync to delete extraneous files from the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1336 |
-receiving side (ones that aren\(cq\&t on the sending side), but only for the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1337 |
+receiving side (ones that aren't on the sending side), but only for the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1338 |
directories that are being synchronized. You must have asked rsync to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1339 |
-send the whole directory (e.g. \(dq\&dir\(dq\& or \(dq\&dir/\(dq\&) without using a wildcard |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1340 |
-for the directory\(cq\&s contents (e.g. \(dq\&dir/*\(dq\&) since the wildcard is expanded |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1341 |
+send the whole directory (e.g. \(lqdir\(rq or \(lqdir/\(rq) without using a wildcard |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1342 |
+for the directory's contents (e.g. \(lqdir/*\(rq) since the wildcard is expanded |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1343 |
by the shell and rsync thus gets a request to transfer individual files, not |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1344 |
-the files\(cq\& parent directory. Files that are excluded from the transfer are |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1345 |
+the files' parent directory. Files that are excluded from the transfer are |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1346 |
also excluded from being deleted unless you use the \fB\-\-delete\-excluded\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1347 |
option or mark the rules as only matching on the sending side (see the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1348 |
include/exclude modifiers in the FILTER RULES section). |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1349 |
@@ -1413,29 +1418,29 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1350 |
\fB\-\-delete\-delay\fP and \fB\-\-delete\-after\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1351 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1352 |
.IP "\fB\-\-delete\-before\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1353 |
-Request that the file\-deletions on the receiving |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1354 |
+Request that the file-deletions on the receiving |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1355 |
side be done before the transfer starts. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1356 |
-See \fB\-\-delete\fP (which is implied) for more details on file\-deletion. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1357 |
+See \fB\-\-delete\fP (which is implied) for more details on file-deletion. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1358 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1359 |
Deleting before the transfer is helpful if the filesystem is tight for space |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1360 |
and removing extraneous files would help to make the transfer possible. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1361 |
However, it does introduce a delay before the start of the transfer, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1362 |
and this delay might cause the transfer to timeout (if \fB\-\-timeout\fP was |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1363 |
-specified). It also forces rsync to use the old, non\-incremental recursion |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1364 |
+specified). It also forces rsync to use the old, non-incremental recursion |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1365 |
algorithm that requires rsync to scan all the files in the transfer into |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1366 |
memory at once (see \fB\-\-recursive\fP). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1367 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1368 |
.IP "\fB\-\-delete\-during, \-\-del\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1369 |
-Request that the file\-deletions on the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1370 |
+Request that the file-deletions on the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1371 |
receiving side be done incrementally as the transfer happens. The |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1372 |
-per\-directory delete scan is done right before each directory is checked |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1373 |
+per-directory delete scan is done right before each directory is checked |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1374 |
for updates, so it behaves like a more efficient \fB\-\-delete\-before\fP, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1375 |
-including doing the deletions prior to any per\-directory filter files |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1376 |
+including doing the deletions prior to any per-directory filter files |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1377 |
being updated. This option was first added in rsync version 2.6.4. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1378 |
-See \fB\-\-delete\fP (which is implied) for more details on file\-deletion. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1379 |
+See \fB\-\-delete\fP (which is implied) for more details on file-deletion. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1380 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1381 |
.IP "\fB\-\-delete\-delay\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1382 |
-Request that the file\-deletions on the receiving |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1383 |
+Request that the file-deletions on the receiving |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1384 |
side be computed during the transfer (like \fB\-\-delete\-during\fP), and then |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1385 |
removed after the transfer completes. This is useful when combined with |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1386 |
\fB\-\-delay\-updates\fP and/or \fB\-\-fuzzy\fP, and is more efficient than using |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1387 |
@@ -1443,21 +1448,21 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1388 |
computes the deletions in a separate pass after all updates are done). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1389 |
If the number of removed files overflows an internal buffer, a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1390 |
temporary file will be created on the receiving side to hold the names (it |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1391 |
-is removed while open, so you shouldn\(cq\&t see it during the transfer). If |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1392 |
+is removed while open, so you shouldn't see it during the transfer). If |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1393 |
the creation of the temporary file fails, rsync will try to fall back to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1394 |
using \fB\-\-delete\-after\fP (which it cannot do if \fB\-\-recursive\fP is doing an |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1395 |
incremental scan). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1396 |
-See \fB\-\-delete\fP (which is implied) for more details on file\-deletion. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1397 |
+See \fB\-\-delete\fP (which is implied) for more details on file-deletion. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1398 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1399 |
.IP "\fB\-\-delete\-after\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1400 |
-Request that the file\-deletions on the receiving |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1401 |
+Request that the file-deletions on the receiving |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1402 |
side be done after the transfer has completed. This is useful if you |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1403 |
-are sending new per\-directory merge files as a part of the transfer and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1404 |
+are sending new per-directory merge files as a part of the transfer and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1405 |
you want their exclusions to take effect for the delete phase of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1406 |
-current transfer. It also forces rsync to use the old, non\-incremental |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1407 |
+current transfer. It also forces rsync to use the old, non-incremental |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1408 |
recursion algorithm that requires rsync to scan all the files in the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1409 |
transfer into memory at once (see \fB\-\-recursive\fP). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1410 |
-See \fB\-\-delete\fP (which is implied) for more details on file\-deletion. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1411 |
+See \fB\-\-delete\fP (which is implied) for more details on file-deletion. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1412 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1413 |
.IP "\fB\-\-delete\-excluded\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1414 |
In addition to deleting the files on the |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1415 |
@@ -1466,19 +1471,19 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1416 |
See the FILTER RULES section for a way to make individual exclusions behave |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1417 |
this way on the receiver, and for a way to protect files from |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1418 |
\fB\-\-delete\-excluded\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1419 |
-See \fB\-\-delete\fP (which is implied) for more details on file\-deletion. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1420 |
+See \fB\-\-delete\fP (which is implied) for more details on file-deletion. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1421 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1422 |
.IP "\fB\-\-ignore\-errors\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1423 |
Tells \fB\-\-delete\fP to go ahead and delete files |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1424 |
even when there are I/O errors. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1425 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1426 |
.IP "\fB\-\-force\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1427 |
-This option tells rsync to delete a non\-empty directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1428 |
-when it is to be replaced by a non\-directory. This is only relevant if |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1429 |
+This option tells rsync to delete a non-empty directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1430 |
+when it is to be replaced by a non-directory. This is only relevant if |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1431 |
deletions are not active (see \fB\-\-delete\fP for details). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1432 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1433 |
Note for older rsync versions: \fB\-\-force\fP used to still be required when |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1434 |
-using \fB\-\-delete\-after\fP, and it used to be non\-functional unless the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1435 |
+using \fB\-\-delete\-after\fP, and it used to be non-functional unless the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1436 |
\fB\-\-recursive\fP option was also enabled. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1437 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1438 |
.IP "\fB\-\-max\-delete=NUM\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1439 |
@@ -1488,27 +1493,27 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1440 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1441 |
Also new for version 3.0.0, you may specify \fB\-\-max\-delete=0\fP to be warned |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1442 |
about any extraneous files in the destination without removing any of them. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1443 |
-Older clients interpreted this as \(dq\&unlimited\(dq\&, so if you don\(cq\&t know what |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1444 |
+Older clients interpreted this as \(lqunlimited\(rq, so if you don't know what |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1445 |
version the client is, you can use the less obvious \fB\-\-max\-delete=\-1\fP as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1446 |
-a backward\-compatible way to specify that no deletions be allowed (though |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1447 |
-older versions didn\(cq\&t warn when the limit was exceeded). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1448 |
+a backward-compatible way to specify that no deletions be allowed (though |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1449 |
+older versions didn't warn when the limit was exceeded). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1450 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1451 |
.IP "\fB\-\-max\-size=SIZE\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1452 |
This tells rsync to avoid transferring any |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1453 |
file that is larger than the specified SIZE. The SIZE value can be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1454 |
suffixed with a string to indicate a size multiplier, and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1455 |
-may be a fractional value (e.g. \(dq\&\fB\-\-max\-size=1.5m\fP\(dq\&). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1456 |
+may be a fractional value (e.g. \(lq\fB\-\-max\-size=1.5m\fP\(rq). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1457 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1458 |
-This option is a transfer rule, not an exclude, so it doesn\(cq\&t affect the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1459 |
-data that goes into the file\-lists, and thus it doesn\(cq\&t affect deletions. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1460 |
+This option is a transfer rule, not an exclude, so it doesn't affect the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1461 |
+data that goes into the file-lists, and thus it doesn't affect deletions. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1462 |
It just limits the files that the receiver requests to be transferred. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1463 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1464 |
-The suffixes are as follows: \(dq\&K\(dq\& (or \(dq\&KiB\(dq\&) is a kibibyte (1024), |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1465 |
-\(dq\&M\(dq\& (or \(dq\&MiB\(dq\&) is a mebibyte (1024*1024), and \(dq\&G\(dq\& (or \(dq\&GiB\(dq\&) is a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1466 |
+The suffixes are as follows: \(lqK\(rq (or \(lqKiB\(rq) is a kibibyte (1024), |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1467 |
+\(lqM\(rq (or \(lqMiB\(rq) is a mebibyte (1024*1024), and \(lqG\(rq (or \(lqGiB\(rq) is a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1468 |
gibibyte (1024*1024*1024). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1469 |
-If you want the multiplier to be 1000 instead of 1024, use \(dq\&KB\(dq\&, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1470 |
-\(dq\&MB\(dq\&, or \(dq\&GB\(dq\&. (Note: lower\-case is also accepted for all values.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1471 |
-Finally, if the suffix ends in either \(dq\&+1\(dq\& or \(dq\&\-1\(dq\&, the value will |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1472 |
+If you want the multiplier to be 1000 instead of 1024, use \(lqKB\(rq, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1473 |
+\(lqMB\(rq, or \(lqGB\(rq. (Note: lower-case is also accepted for all values.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1474 |
+Finally, if the suffix ends in either \(lq+1\(rq or \(lq\-1\(rq, the value will |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1475 |
be offset by one byte in the indicated direction. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1476 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1477 |
Examples: \-\-max\-size=1.5mb\-1 is 1499999 bytes, and \-\-max\-size=2g+1 is |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1478 |
@@ -1522,7 +1527,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1479 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1480 |
.IP "\fB\-B, \-\-block\-size=BLOCKSIZE\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1481 |
This forces the block size used in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1482 |
-rsync\(cq\&s delta\-transfer algorithm to a fixed value. It is normally selected based on |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1483 |
+rsync's delta-transfer algorithm to a fixed value. It is normally selected based on |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1484 |
the size of each file being updated. See the technical report for details. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1485 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1486 |
.IP "\fB\-e, \-\-rsh=COMMAND\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1487 |
@@ -1535,27 +1540,27 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1488 |
remote shell \fICOMMAND\fP will be used to run an rsync daemon on the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1489 |
remote host, and all data will be transmitted through that remote |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1490 |
shell connection, rather than through a direct socket connection to a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1491 |
-running rsync daemon on the remote host. See the section \(dq\&USING |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1492 |
-RSYNC\-DAEMON FEATURES VIA A REMOTE\-SHELL CONNECTION\(dq\& above. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1493 |
+running rsync daemon on the remote host. See the section \(lqUSING |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1494 |
+RSYNC-DAEMON FEATURES VIA A REMOTE-SHELL CONNECTION\(rq above. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1495 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1496 |
-Command\-line arguments are permitted in COMMAND provided that COMMAND is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1497 |
+Command-line arguments are permitted in COMMAND provided that COMMAND is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1498 |
presented to rsync as a single argument. You must use spaces (not tabs |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1499 |
or other whitespace) to separate the command and args from each other, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1500 |
-and you can use single\- and/or double\-quotes to preserve spaces in an |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1501 |
-argument (but not backslashes). Note that doubling a single\-quote |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1502 |
-inside a single\-quoted string gives you a single\-quote; likewise for |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1503 |
-double\-quotes (though you need to pay attention to which quotes your |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1504 |
+and you can use single- and/or double-quotes to preserve spaces in an |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1505 |
+argument (but not backslashes). Note that doubling a single-quote |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1506 |
+inside a single\-quoted string gives you a single-quote; likewise for |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1507 |
+double-quotes (though you need to pay attention to which quotes your |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1508 |
shell is parsing and which quotes rsync is parsing). Some examples: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1509 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1510 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1511 |
-\f(CW \-e '\&ssh \-p 2234'\&\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1512 |
+\f(CW \-e 'ssh \-p 2234'\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1513 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1514 |
-\f(CW \-e '\&ssh \-o \(dq\&ProxyCommand nohup ssh firewall nc \-w1 %h %p\(dq\&'\&\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1515 |
+\f(CW \-e 'ssh \-o "ProxyCommand nohup ssh firewall nc \-w1 %h %p"'\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1516 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1517 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1518 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1519 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1520 |
-(Note that ssh users can alternately customize site\-specific connect |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1521 |
+(Note that ssh users can alternately customize site-specific connect |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1522 |
options in their .ssh/config file.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1523 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1524 |
You can also choose the remote shell program using the RSYNC_RSH |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1525 |
@@ -1565,29 +1570,29 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1526 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1527 |
.IP "\fB\-\-rsync\-path=PROGRAM\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1528 |
Use this to specify what program is to be run |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1529 |
-on the remote machine to start\-up rsync. Often used when rsync is not in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1530 |
-the default remote\-shell\(cq\&s path (e.g. \-\-rsync\-path=/usr/local/bin/rsync). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1531 |
+on the remote machine to start-up rsync. Often used when rsync is not in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1532 |
+the default remote-shell's path (e.g. \-\-rsync\-path=/usr/local/bin/rsync). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1533 |
Note that PROGRAM is run with the help of a shell, so it can be any |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1534 |
-program, script, or command sequence you\(cq\&d care to run, so long as it does |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1535 |
-not corrupt the standard\-in & standard\-out that rsync is using to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1536 |
+program, script, or command sequence you'd care to run, so long as it does |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1537 |
+not corrupt the standard-in & standard-out that rsync is using to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1538 |
communicate. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1539 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1540 |
One tricky example is to set a different default directory on the remote |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1541 |
machine for use with the \fB\-\-relative\fP option. For instance: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1542 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1543 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1544 |
-\f(CW rsync \-avR \-\-rsync\-path=\(dq\&cd /a/b && rsync\(dq\& host:c/d /e/\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1545 |
+\f(CW rsync \-avR \-\-rsync\-path="cd /a/b && rsync" host:c/d /e/\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1546 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1547 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1548 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1549 |
.IP "\fB\-C, \-\-cvs\-exclude\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1550 |
This is a useful shorthand for excluding a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1551 |
-broad range of files that you often don\(cq\&t want to transfer between |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1552 |
+broad range of files that you often don't want to transfer between |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1553 |
systems. It uses a similar algorithm to CVS to determine if |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1554 |
a file should be ignored. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1555 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1556 |
The exclude list is initialized to exclude the following items (these |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1557 |
-initial items are marked as perishable \-\- see the FILTER RULES section): |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1558 |
+initial items are marked as perishable \(em see the FILTER RULES section): |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1559 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1560 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1561 |
.RS |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1562 |
@@ -1604,19 +1609,19 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1563 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1564 |
Finally, any file is ignored if it is in the same directory as a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1565 |
\&.cvsignore file and matches one of the patterns listed therein. Unlike |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1566 |
-rsync\(cq\&s filter/exclude files, these patterns are split on whitespace. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1567 |
+rsync's filter/exclude files, these patterns are split on whitespace. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1568 |
See the \fBcvs\fP(1) manual for more information. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1569 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1570 |
-If you\(cq\&re combining \fB\-C\fP with your own \fB\-\-filter\fP rules, you should |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1571 |
+If you're combining \fB\-C\fP with your own \fB\-\-filter\fP rules, you should |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1572 |
note that these CVS excludes are appended at the end of your own rules, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1573 |
-regardless of where the \fB\-C\fP was placed on the command\-line. This makes them |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1574 |
+regardless of where the \fB\-C\fP was placed on the command-line. This makes them |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1575 |
a lower priority than any rules you specified explicitly. If you want to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1576 |
control where these CVS excludes get inserted into your filter rules, you |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1577 |
-should omit the \fB\-C\fP as a command\-line option and use a combination of |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1578 |
-\fB\-\-filter=:C\fP and \fB\-\-filter=\-C\fP (either on your command\-line or by |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1579 |
-putting the \(dq\&:C\(dq\& and \(dq\&\-C\(dq\& rules into a filter file with your other rules). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1580 |
-The first option turns on the per\-directory scanning for the .cvsignore |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1581 |
-file. The second option does a one\-time import of the CVS excludes |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1582 |
+should omit the \fB\-C\fP as a command-line option and use a combination of |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1583 |
+\fB\-\-filter=:C\fP and \fB\-\-filter=\-C\fP (either on your command-line or by |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1584 |
+putting the \(lq:C\(rq and \(lq\-C\(rq rules into a filter file with your other rules). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1585 |
+The first option turns on the per-directory scanning for the .cvsignore |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1586 |
+file. The second option does a one-time import of the CVS excludes |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1587 |
mentioned above. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1588 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1589 |
.IP "\fB\-f, \-\-filter=RULE\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1590 |
@@ -1637,17 +1642,17 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1591 |
your command. The first time it is used is a shorthand for this rule: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1592 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1593 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1594 |
-\f(CW \-\-filter='\&dir\-merge /.rsync\-filter'\&\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1595 |
+\f(CW \-\-filter='dir\-merge /.rsync\-filter'\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1596 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1597 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1598 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1599 |
-This tells rsync to look for per\-directory .rsync\-filter files that have |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1600 |
+This tells rsync to look for per-directory .rsync-filter files that have |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1601 |
been sprinkled through the hierarchy and use their rules to filter the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1602 |
files in the transfer. If \fB\-F\fP is repeated, it is a shorthand for this |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1603 |
rule: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1604 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1605 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1606 |
-\f(CW \-\-filter='\&exclude .rsync\-filter'\&\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1607 |
+\f(CW \-\-filter='exclude .rsync\-filter'\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1608 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1609 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1610 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1611 |
@@ -1659,27 +1664,27 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1612 |
.IP "\fB\-\-exclude=PATTERN\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1613 |
This option is a simplified form of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1614 |
\fB\-\-filter\fP option that defaults to an exclude rule and does not allow |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1615 |
-the full rule\-parsing syntax of normal filter rules. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1616 |
+the full rule-parsing syntax of normal filter rules. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1617 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1618 |
See the FILTER RULES section for detailed information on this option. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1619 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1620 |
.IP "\fB\-\-exclude\-from=FILE\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1621 |
This option is related to the \fB\-\-exclude\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1622 |
option, but it specifies a FILE that contains exclude patterns (one per line). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1623 |
-Blank lines in the file and lines starting with \(cq\&;\(cq\& or \(cq\&#\(cq\& are ignored. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1624 |
+Blank lines in the file and lines starting with \(oq;\(cq or \(oq#\(cq are ignored. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1625 |
If \fIFILE\fP is \fB\-\fP, the list will be read from standard input. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1626 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1627 |
.IP "\fB\-\-include=PATTERN\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1628 |
This option is a simplified form of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1629 |
\fB\-\-filter\fP option that defaults to an include rule and does not allow |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1630 |
-the full rule\-parsing syntax of normal filter rules. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1631 |
+the full rule-parsing syntax of normal filter rules. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1632 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1633 |
See the FILTER RULES section for detailed information on this option. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1634 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1635 |
.IP "\fB\-\-include\-from=FILE\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1636 |
This option is related to the \fB\-\-include\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1637 |
option, but it specifies a FILE that contains include patterns (one per line). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1638 |
-Blank lines in the file and lines starting with \(cq\&;\(cq\& or \(cq\&#\(cq\& are ignored. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1639 |
+Blank lines in the file and lines starting with \(oq;\(cq or \(oq#\(cq are ignored. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1640 |
If \fIFILE\fP is \fB\-\fP, the list will be read from standard input. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1641 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1642 |
.IP "\fB\-\-files\-from=FILE\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1643 |
@@ -1698,18 +1703,18 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1644 |
specified in the list on the destination rather than noisily skipping |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1645 |
them (use \fB\-\-no\-dirs\fP or \fB\-\-no\-d\fP if you want to turn that off). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1646 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1647 |
-The \fB\-\-archive\fP (\fB\-a\fP) option\(cq\&s behavior does not imply \fB\-\-recursive\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1648 |
+The \fB\-\-archive\fP (\fB\-a\fP) option's behavior does not imply \fB\-\-recursive\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1649 |
(\fB\-r\fP), so specify it explicitly, if you want it. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1650 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1651 |
-These side\-effects change the default state of rsync, so the position |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1652 |
-of the \fB\-\-files\-from\fP option on the command\-line has no bearing on how |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1653 |
+These side-effects change the default state of rsync, so the position |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1654 |
+of the \fB\-\-files\-from\fP option on the command-line has no bearing on how |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1655 |
other options are parsed (e.g. \fB\-a\fP works the same before or after |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1656 |
\fB\-\-files\-from\fP, as does \fB\-\-no\-R\fP and all other options). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1657 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1658 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1659 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1660 |
The filenames that are read from the FILE are all relative to the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1661 |
-source dir \-\- any leading slashes are removed and no \(dq\&..\(dq\& references are |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1662 |
+source dir \(em any leading slashes are removed and no \(lq..\(rq references are |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1663 |
allowed to go higher than the source dir. For example, take this |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1664 |
command: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1665 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1666 |
@@ -1718,47 +1723,47 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1667 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1668 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1669 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1670 |
-If /tmp/foo contains the string \(dq\&bin\(dq\& (or even \(dq\&/bin\(dq\&), the /usr/bin |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1671 |
+If /tmp/foo contains the string \(lqbin\(rq (or even \(lq/bin\(rq), the /usr/bin |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1672 |
directory will be created as /backup/bin on the remote host. If it |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1673 |
-contains \(dq\&bin/\(dq\& (note the trailing slash), the immediate contents of |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1674 |
+contains \(lqbin/\(rq (note the trailing slash), the immediate contents of |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1675 |
the directory would also be sent (without needing to be explicitly |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1676 |
-mentioned in the file \-\- this began in version 2.6.4). In both cases, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1677 |
-if the \fB\-r\fP option was enabled, that dir\(cq\&s entire hierarchy would |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1678 |
+mentioned in the file \(em this began in version 2.6.4). In both cases, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1679 |
+if the \fB\-r\fP option was enabled, that dir's entire hierarchy would |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1680 |
also be transferred (keep in mind that \fB\-r\fP needs to be specified |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1681 |
explicitly with \fB\-\-files\-from\fP, since it is not implied by \fB\-a\fP). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1682 |
Also note |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1683 |
that the effect of the (enabled by default) \fB\-\-relative\fP option is to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1684 |
-duplicate only the path info that is read from the file \-\- it does not |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1685 |
-force the duplication of the source\-spec path (/usr in this case). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1686 |
+duplicate only the path info that is read from the file \(em it does not |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1687 |
+force the duplication of the source-spec path (/usr in this case). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1688 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1689 |
In addition, the \fB\-\-files\-from\fP file can be read from the remote host |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1690 |
-instead of the local host if you specify a \(dq\&host:\(dq\& in front of the file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1691 |
-(the host must match one end of the transfer). As a short\-cut, you can |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1692 |
-specify just a prefix of \(dq\&:\(dq\& to mean \(dq\&use the remote end of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1693 |
-transfer\(dq\&. For example: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1694 |
+instead of the local host if you specify a \(lqhost:\(rq in front of the file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1695 |
+(the host must match one end of the transfer). As a short-cut, you can |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1696 |
+specify just a prefix of \(lq:\(rq to mean \(lquse the remote end of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1697 |
+transfer\(rq. For example: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1698 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1699 |
.RS |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1700 |
-\f(CW rsync \-a \-\-files\-from=:/path/file\-list src:/ /tmp/copy\fP |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1701 |
+\f(CW rsync \-a \-\-files\-from=:/path/file-list src:/ /tmp/copy\fP |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1702 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1703 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1704 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1705 |
-This would copy all the files specified in the /path/file\-list file that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1706 |
-was located on the remote \(dq\&src\(dq\& host. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1707 |
+This would copy all the files specified in the /path/file-list file that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1708 |
+was located on the remote \(lqsrc\(rq host. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1709 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1710 |
If the \fB\-\-iconv\fP and \fB\-\-protect\-args\fP options are specified and the |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1711 |
\fB\-\-files\-from\fP filenames are being sent from one host to another, the |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1712 |
-filenames will be translated from the sending host\(cq\&s charset to the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1713 |
-receiving host\(cq\&s charset. |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1714 |
+filenames will be translated from the sending host's charset to the |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1715 |
+receiving host's charset. |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1716 |
.IP |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1717 |
NOTE: sorting the list of files in the \-\-files\-from input helps rsync to be |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1718 |
more efficient, as it will avoid re\-visiting the path elements that are shared |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1719 |
between adjacent entries. If the input is not sorted, some path elements |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1720 |
(implied directories) may end up being scanned multiple times, and rsync will |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1721 |
-eventually unduplicate them after they get turned into file\-list elements. |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1722 |
+eventually unduplicate them after they get turned into file-list elements. |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1723 |
.IP |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1724 |
.IP "\fB\-0, \-\-from0\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1725 |
This tells rsync that the rules/filenames it reads from a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1726 |
-file are terminated by a null (\(cq\&\e0\(cq\&) character, not a NL, CR, or CR+LF. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1727 |
+file are terminated by a null ('\e0') character, not a NL, CR, or CR+LF. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1728 |
This affects \fB\-\-exclude\-from\fP, \fB\-\-include\-from\fP, \fB\-\-files\-from\fP, and any |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1729 |
merged files specified in a \fB\-\-filter\fP rule. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1730 |
It does not affect \fB\-\-cvs\-exclude\fP (since all names read from a .cvsignore |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1731 |
@@ -1767,14 +1772,14 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1732 |
.IP "\fB\-s, \-\-protect\-args\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1733 |
This option sends all filenames and most options to |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1734 |
the remote rsync without allowing the remote shell to interpret them. This |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1735 |
-means that spaces are not split in names, and any non\-wildcard special |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1736 |
+means that spaces are not split in names, and any non-wildcard special |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1737 |
characters are not translated (such as ~, $, ;, &, etc.). Wildcards are |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1738 |
expanded on the remote host by rsync (instead of the shell doing it). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1739 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1740 |
If you use this option with \fB\-\-iconv\fP, the args related to the remote |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1741 |
side will also be translated |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1742 |
-from the local to the remote character\-set. The translation happens before |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1743 |
-wild\-cards are expanded. See also the \fB\-\-files\-from\fP option. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1744 |
+from the local to the remote character-set. The translation happens before |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1745 |
+wild-cards are expanded. See also the \fB\-\-files\-from\fP option. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1746 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1747 |
.IP "\fB\-T, \-\-temp\-dir=DIR\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1748 |
This option instructs rsync to use DIR as a |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1749 |
@@ -1799,25 +1804,25 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1750 |
If you are using this option for reasons other than a shortage of disk |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1751 |
space, you may wish to combine it with the \fB\-\-delay\-updates\fP option, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1752 |
which will ensure that all copied files get put into subdirectories in the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1753 |
-destination hierarchy, awaiting the end of the transfer. If you don\(cq\&t |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1754 |
+destination hierarchy, awaiting the end of the transfer. If you don't |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1755 |
have enough room to duplicate all the arriving files on the destination |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1756 |
-partition, another way to tell rsync that you aren\(cq\&t overly concerned |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1757 |
+partition, another way to tell rsync that you aren't overly concerned |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1758 |
about disk space is to use the \fB\-\-partial\-dir\fP option with a relative |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1759 |
path; because this tells rsync that it is OK to stash off a copy of a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1760 |
single file in a subdir in the destination hierarchy, rsync will use the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1761 |
-partial\-dir as a staging area to bring over the copied file, and then |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1762 |
+partial-dir as a staging area to bring over the copied file, and then |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1763 |
rename it into place from there. (Specifying a \fB\-\-partial\-dir\fP with |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1764 |
-an absolute path does not have this side\-effect.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1765 |
+an absolute path does not have this side-effect.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1766 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1767 |
.IP "\fB\-y, \-\-fuzzy\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1768 |
This option tells rsync that it should look for a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1769 |
basis file for any destination file that is missing. The current algorithm |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1770 |
looks in the same directory as the destination file for either a file that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1771 |
-has an identical size and modified\-time, or a similarly\-named file. If |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1772 |
+has an identical size and modified-time, or a similarly-named file. If |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1773 |
found, rsync uses the fuzzy basis file to try to speed up the transfer. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1774 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1775 |
Note that the use of the \fB\-\-delete\fP option might get rid of any potential |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1776 |
-fuzzy\-match files, so either use \fB\-\-delete\-after\fP or specify some |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1777 |
+fuzzy-match files, so either use \fB\-\-delete\-after\fP or specify some |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1778 |
filename exclusions if you need to prevent this. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1779 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1780 |
.IP "\fB\-\-compare\-dest=DIR\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1781 |
@@ -1825,7 +1830,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1782 |
the destination machine as an additional hierarchy to compare destination |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1783 |
files against doing transfers (if the files are missing in the destination |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1784 |
directory). If a file is found in \fIDIR\fP that is identical to the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1785 |
-sender\(cq\&s file, the file will NOT be transferred to the destination |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1786 |
+sender's file, the file will NOT be transferred to the destination |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1787 |
directory. This is useful for creating a sparse backup of just files that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1788 |
have changed from an earlier backup. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1789 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1790 |
@@ -1845,7 +1850,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1791 |
rsync will also copy unchanged files found in \fIDIR\fP to the destination |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1792 |
directory using a local copy. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1793 |
This is useful for doing transfers to a new destination while leaving |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1794 |
-existing files intact, and then doing a flash\-cutover when all files have |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1795 |
+existing files intact, and then doing a flash-cutover when all files have |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1796 |
been successfully transferred. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1797 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1798 |
Multiple \fB\-\-copy\-dest\fP directories may be provided, which will cause |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1799 |
@@ -1868,10 +1873,10 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1800 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1801 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1802 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1803 |
-If file\(cq\&s aren\(cq\&t linking, double\-check their attributes. Also check if some |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1804 |
-attributes are getting forced outside of rsync\(cq\&s control, such a mount option |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1805 |
+If file's aren't linking, double-check their attributes. Also check if some |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1806 |
+attributes are getting forced outside of rsync's control, such a mount option |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1807 |
that squishes root to a single user, or mounts a removable drive with generic |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1808 |
-ownership (such as OS X\(cq\&s \(dq\&Ignore ownership on this volume\(dq\& option). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1809 |
+ownership (such as OS X's \(lqIgnore ownership on this volume\(rq option). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1810 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1811 |
Beginning in version 2.6.4, multiple \fB\-\-link\-dest\fP directories may be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1812 |
provided, which will cause rsync to search the list in the order specified |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1813 |
@@ -1882,9 +1887,9 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1814 |
selected to try to speed up the transfer. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1815 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1816 |
This option works best when copying into an empty destination hierarchy, as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1817 |
-rsync treats existing files as definitive (so it never looks in the link\-dest |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1818 |
+rsync treats existing files as definitive (so it never looks in the link-dest |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1819 |
dirs when a destination file already exists), and as malleable (so it might |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1820 |
-change the attributes of a destination file, which affects all the hard\-linked |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1821 |
+change the attributes of a destination file, which affects all the hard-linked |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1822 |
versions). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1823 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1824 |
Note that if you combine this option with \fB\-\-ignore\-times\fP, rsync will not |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1825 |
@@ -1896,14 +1901,14 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1826 |
See also \fB\-\-compare\-dest\fP and \fB\-\-copy\-dest\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1827 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1828 |
Note that rsync versions prior to 2.6.1 had a bug that could prevent |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1829 |
-\fB\-\-link\-dest\fP from working properly for a non\-super\-user when \fB\-o\fP was |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1830 |
-specified (or implied by \fB\-a\fP). You can work\-around this bug by avoiding |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1831 |
+\fB\-\-link\-dest\fP from working properly for a non-super-user when \fB\-o\fP was |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1832 |
+specified (or implied by \fB\-a\fP). You can work-around this bug by avoiding |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1833 |
the \fB\-o\fP option when sending to an old rsync. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1834 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1835 |
.IP "\fB\-z, \-\-compress\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1836 |
With this option, rsync compresses the file data |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1837 |
as it is sent to the destination machine, which reduces the amount of data |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1838 |
-being transmitted \-\- something that is useful over a slow connection. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1839 |
+being transmitted \(em something that is useful over a slow connection. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1840 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1841 |
Note that this option typically achieves better compression ratios than can |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1842 |
be achieved by using a compressing remote shell or a compressing transport |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1843 |
@@ -1915,7 +1920,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1844 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1845 |
.IP "\fB\-\-compress\-level=NUM\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1846 |
Explicitly set the compression level to use |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1847 |
-(see \fB\-\-compress\fP) instead of letting it default. If NUM is non\-zero, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1848 |
+(see \fB\-\-compress\fP) instead of letting it default. If NUM is non-zero, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1849 |
the \fB\-\-compress\fP option is implied. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1850 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1851 |
.IP "\fB\-\-skip\-compress=LIST\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1852 |
@@ -1925,13 +1930,13 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1853 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1854 |
You may specify an empty string to indicate that no file should be skipped. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1855 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1856 |
-Simple character\-class matching is supported: each must consist of a list |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1857 |
+Simple character-class matching is supported: each must consist of a list |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1858 |
of letters inside the square brackets (e.g. no special classes, such as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1859 |
-\(dq\&[:alpha:]\(dq\&, are supported, and \(cq\&\-\(cq\& has no special meaning). |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1860 |
+\(lq[:alpha:]\(rq, are supported, and '\-' has no special meaning). |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1861 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1862 |
-The characters asterisk (*) and question\-mark (?) have no special meaning. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1863 |
+The characters asterisk (*) and question-mark (?) have no special meaning. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1864 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1865 |
-Here\(cq\&s an example that specifies 6 suffixes to skip (since 1 of the 5 rules |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1866 |
+Here's an example that specifies 6 suffixes to skip (since 1 of the 5 rules |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1867 |
matches 2 suffixes): |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1868 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1869 |
.nf |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1870 |
@@ -1962,7 +1967,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1871 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1872 |
This list will be replaced by your \fB\-\-skip\-compress\fP list in all but one |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1873 |
situation: a copy from a daemon rsync will add your skipped suffixes to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1874 |
-its list of non\-compressing files (and its list may be configured to a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1875 |
+its list of non-compressing files (and its list may be configured to a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1876 |
different default). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1877 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1878 |
.IP "\fB\-\-numeric\-ids\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1879 |
@@ -1978,8 +1983,8 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1880 |
If a user or group has no name on the source system or it has no match |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1881 |
on the destination system, then the numeric ID |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1882 |
from the source system is used instead. See also the comments on the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1883 |
-\(dq\&use chroot\(dq\& setting in the rsyncd.conf manpage for information on how |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1884 |
-the chroot setting affects rsync\(cq\&s ability to look up the names of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1885 |
+\(lquse chroot\(rq setting in the rsyncd.conf manpage for information on how |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1886 |
+the chroot setting affects rsync's ability to look up the names of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1887 |
users and groups and what you can do about it. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1888 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1889 |
.IP "\fB\-\-timeout=TIMEOUT\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1890 |
@@ -2001,7 +2006,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1891 |
.IP "\fB\-\-port=PORT\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1892 |
This specifies an alternate TCP port number to use |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1893 |
rather than the default of 873. This is only needed if you are using the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1894 |
-double\-colon (::) syntax to connect with an rsync daemon (since the URL |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1895 |
+double-colon (::) syntax to connect with an rsync daemon (since the URL |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1896 |
syntax has a way to specify the port as a part of the URL). See also this |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1897 |
option in the \fB\-\-daemon\fP mode section. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1898 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1899 |
@@ -2021,21 +2026,21 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1900 |
This tells rsync to use blocking I/O when launching |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1901 |
a remote shell transport. If the remote shell is either rsh or remsh, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1902 |
rsync defaults to using |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1903 |
-blocking I/O, otherwise it defaults to using non\-blocking I/O. (Note that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1904 |
-ssh prefers non\-blocking I/O.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1905 |
+blocking I/O, otherwise it defaults to using non-blocking I/O. (Note that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1906 |
+ssh prefers non-blocking I/O.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1907 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1908 |
.IP "\fB\-i, \-\-itemize\-changes\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1909 |
Requests a simple itemized list of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1910 |
changes that are being made to each file, including attribute changes. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1911 |
-This is exactly the same as specifying \fB\-\-out\-format='\&%i %n%L'\&\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1912 |
+This is exactly the same as specifying \fB\-\-out\-format='%i %n%L'\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1913 |
If you repeat the option, unchanged files will also be output, but only |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1914 |
if the receiving rsync is at least version 2.6.7 (you can use \fB\-vv\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1915 |
with older versions of rsync, but that also turns on the output of other |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1916 |
verbose messages). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1917 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1918 |
-The \(dq\&%i\(dq\& escape has a cryptic output that is 11 letters long. The general |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1919 |
+The \(lq%i\(rq escape has a cryptic output that is 11 letters long. The general |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1920 |
format is like the string \fBYXcstpoguax\fP, where \fBY\fP is replaced by the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1921 |
-type of update being done, \fBX\fP is replaced by the file\-type, and the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1922 |
+type of update being done, \fBX\fP is replaced by the file-type, and the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1923 |
other letters represent attributes that may be output if they are being |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1924 |
modified. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1925 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1926 |
@@ -2058,21 +2063,21 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1927 |
A \fB.\fP means that the item is not being updated (though it might |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1928 |
have attributes that are being modified). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1929 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1930 |
-A \fB*\fP means that the rest of the itemized\-output area contains |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1931 |
-a message (e.g. \(dq\&deleting\(dq\&). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1932 |
+A \fB*\fP means that the rest of the itemized-output area contains |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1933 |
+a message (e.g. \(lqdeleting\(rq). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1934 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1935 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1936 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1937 |
-The file\-types that replace the \fBX\fP are: \fBf\fP for a file, a \fBd\fP for a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1938 |
+The file-types that replace the \fBX\fP are: \fBf\fP for a file, a \fBd\fP for a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1939 |
directory, an \fBL\fP for a symlink, a \fBD\fP for a device, and a \fBS\fP for a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1940 |
special file (e.g. named sockets and fifos). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1941 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1942 |
The other letters in the string above are the actual letters that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1943 |
will be output if the associated attribute for the item is being updated or |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1944 |
-a \(dq\&.\(dq\& for no change. Three exceptions to this are: (1) a newly created |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1945 |
-item replaces each letter with a \(dq\&+\(dq\&, (2) an identical item replaces the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1946 |
+a \(lq.\(rq for no change. Three exceptions to this are: (1) a newly created |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1947 |
+item replaces each letter with a \(lq+\(rq, (2) an identical item replaces the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1948 |
dots with spaces, and (3) an unknown attribute replaces each letter with |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1949 |
-a \(dq\&?\(dq\& (this can happen when talking to an older rsync). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1950 |
+a \(lq?\(rq (this can happen when talking to an older rsync). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1951 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1952 |
The attribute that is associated with each letter is as follows: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1953 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1954 |
@@ -2082,27 +2087,27 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1955 |
(requires \fB\-\-checksum\fP) or that a symlink, device, or special file has |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1956 |
a changed value. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1957 |
Note that if you are sending files to an rsync prior to 3.0.1, this |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1958 |
-change flag will be present only for checksum\-differing regular files. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1959 |
+change flag will be present only for checksum-differing regular files. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1960 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1961 |
A \fBs\fP means the size of a regular file is different and will be updated |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1962 |
by the file transfer. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1963 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1964 |
A \fBt\fP means the modification time is different and is being updated |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1965 |
-to the sender\(cq\&s value (requires \fB\-\-times\fP). An alternate value of \fBT\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1966 |
+to the sender's value (requires \fB\-\-times\fP). An alternate value of \fBT\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1967 |
means that the modification time will be set to the transfer time, which happens |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1968 |
when a file/symlink/device is updated without \fB\-\-times\fP and when a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1969 |
-symlink is changed and the receiver can\(cq\&t set its time. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1970 |
+symlink is changed and the receiver can't set its time. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1971 |
(Note: when using an rsync 3.0.0 client, you might see the \fBs\fP flag combined |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1972 |
-with \fBt\fP instead of the proper \fBT\fP flag for this time\-setting failure.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1973 |
+with \fBt\fP instead of the proper \fBT\fP flag for this time-setting failure.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1974 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1975 |
A \fBp\fP means the permissions are different and are being updated to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1976 |
-the sender\(cq\&s value (requires \fB\-\-perms\fP). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1977 |
+the sender's value (requires \fB\-\-perms\fP). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1978 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1979 |
An \fBo\fP means the owner is different and is being updated to the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1980 |
-sender\(cq\&s value (requires \fB\-\-owner\fP and super\-user privileges). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1981 |
+sender's value (requires \fB\-\-owner\fP and super-user privileges). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1982 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1983 |
A \fBg\fP means the group is different and is being updated to the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1984 |
-sender\(cq\&s value (requires \fB\-\-group\fP and the authority to set the group). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1985 |
+sender's value (requires \fB\-\-group\fP and the authority to set the group). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1986 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1987 |
The \fBu\fP slot is reserved for future use. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1988 |
.IP o |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
1989 |
@@ -2112,80 +2117,80 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1990 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1991 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1992 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1993 |
-One other output is possible: when deleting files, the \(dq\&%i\(dq\& will output |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1994 |
-the string \(dq\&*deleting\(dq\& for each item that is being removed (assuming that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1995 |
+One other output is possible: when deleting files, the \(lq%i\(rq will output |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1996 |
+the string \(lq*deleting\(rq for each item that is being removed (assuming that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1997 |
you are talking to a recent enough rsync that it logs deletions instead of |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1998 |
outputting them as a verbose message). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
1999 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2000 |
.IP "\fB\-\-out\-format=FORMAT\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2001 |
This allows you to specify exactly what the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2002 |
-rsync client outputs to the user on a per\-update basis. The format is a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2003 |
-text string containing embedded single\-character escape sequences prefixed |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2004 |
-with a percent (%) character. A default format of \(dq\&%n%L\(dq\& is assumed if |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2005 |
+rsync client outputs to the user on a per-update basis. The format is a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2006 |
+text string containing embedded single-character escape sequences prefixed |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2007 |
+with a percent (%) character. A default format of \(lq%n%L\(rq is assumed if |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2008 |
\fB\-v\fP is specified (which reports the name |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2009 |
of the file and, if the item is a link, where it points). For a full list |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2010 |
-of the possible escape characters, see the \(dq\&log format\(dq\& setting in the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2011 |
+of the possible escape characters, see the \(lqlog format\(rq setting in the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2012 |
rsyncd.conf manpage. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2013 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2014 |
Specifying the \fB\-\-out\-format\fP option |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2015 |
will mention each file, dir, etc. that gets updated in a significant |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2016 |
way (a transferred file, a recreated symlink/device, or a touched |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2017 |
-directory). In addition, if the itemize\-changes escape (%i) is included in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2018 |
+directory). In addition, if the itemize-changes escape (%i) is included in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2019 |
the string (e.g. if the \fB\-\-itemize\-changes\fP option was used), the logging |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2020 |
of names increases to mention any item that is changed in any way (as long |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2021 |
as the receiving side is at least 2.6.4). See the \fB\-\-itemize\-changes\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2022 |
-option for a description of the output of \(dq\&%i\(dq\&. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2023 |
+option for a description of the output of \(lq%i\(rq. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2024 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2025 |
-Rsync will output the out\-format string prior to a file\(cq\&s transfer unless |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2026 |
-one of the transfer\-statistic escapes is requested, in which case the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2027 |
-logging is done at the end of the file\(cq\&s transfer. When this late logging |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2028 |
+Rsync will output the out-format string prior to a file's transfer unless |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2029 |
+one of the transfer-statistic escapes is requested, in which case the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2030 |
+logging is done at the end of the file's transfer. When this late logging |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2031 |
is in effect and \fB\-\-progress\fP is also specified, rsync will also output |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2032 |
the name of the file being transferred prior to its progress information |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2033 |
-(followed, of course, by the out\-format output). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2034 |
+(followed, of course, by the out-format output). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2035 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2036 |
.IP "\fB\-\-log\-file=FILE\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2037 |
This option causes rsync to log what it is doing |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2038 |
to a file. This is similar to the logging that a daemon does, but can be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2039 |
-requested for the client side and/or the server side of a non\-daemon |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2040 |
+requested for the client side and/or the server side of a non-daemon |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2041 |
transfer. If specified as a client option, transfer logging will be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2042 |
-enabled with a default format of \(dq\&%i %n%L\(dq\&. See the \fB\-\-log\-file\-format\fP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2043 |
+enabled with a default format of \(lq%i %n%L\(rq. See the \fB\-\-log\-file-format\fP |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2044 |
option if you wish to override this. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2045 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2046 |
-Here\(cq\&s a example command that requests the remote side to log what is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2047 |
+Here's a example command that requests the remote side to log what is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2048 |
happening: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2049 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2050 |
.nf |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2051 |
- rsync \-av \-\-rsync\-path=\(dq\&rsync \-\-log\-file=/tmp/rlog\(dq\& src/ dest/ |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2052 |
+ rsync \-av \-\-rsync\-path="rsync \-\-log\-file=/tmp/rlog" src/ dest/ |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2053 |
.fi |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2054 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2055 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2056 |
This is very useful if you need to debug why a connection is closing |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2057 |
unexpectedly. |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2058 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2059 |
-.IP "\fB\-\-log\-file\-format=FORMAT\fP" |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2060 |
+.IP "\fB\-\-log\-file-format=FORMAT\fP" |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2061 |
This allows you to specify exactly what |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2062 |
-per\-update logging is put into the file specified by the \fB\-\-log\-file\fP option |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2063 |
+per-update logging is put into the file specified by the \fB\-\-log\-file\fP option |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2064 |
(which must also be specified for this option to have any effect). If you |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2065 |
specify an empty string, updated files will not be mentioned in the log file. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2066 |
-For a list of the possible escape characters, see the \(dq\&log format\(dq\& setting |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2067 |
+For a list of the possible escape characters, see the \(lqlog format\(rq setting |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2068 |
in the rsyncd.conf manpage. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2069 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2070 |
The default FORMAT used if \fB\-\-log\-file\fP is specified and this option is not |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2071 |
-is \(cq\&%i %n%L\(cq\&. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2072 |
+is '%i %n%L'. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2073 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2074 |
.IP "\fB\-\-stats\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2075 |
This tells rsync to print a verbose set of statistics |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2076 |
-on the file transfer, allowing you to tell how effective rsync\(cq\&s delta\-transfer |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2077 |
+on the file transfer, allowing you to tell how effective rsync's delta-transfer |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2078 |
algorithm is for your data. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2079 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2080 |
The current statistics are as follows: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2081 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2082 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2083 |
-\fBNumber of files\fP is the count of all \(dq\&files\(dq\& (in the generic |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2084 |
+\fBNumber of files\fP is the count of all \(lqfiles\(rq (in the generic |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2085 |
sense), which includes directories, symlinks, etc. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2086 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2087 |
\fBNumber of files transferred\fP is the count of normal files that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2088 |
-were updated via rsync\(cq\&s delta\-transfer algorithm, which does not include created |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2089 |
+were updated via rsync's delta-transfer algorithm, which does not include created |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2090 |
dirs, symlinks, etc. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2091 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2092 |
\fBTotal file size\fP is the total sum of all file sizes in the transfer. |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2093 |
@@ -2195,14 +2200,14 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2094 |
\fBTotal transferred file size\fP is the total sum of all files sizes |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2095 |
for just the transferred files. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2096 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2097 |
-\fBLiteral data\fP is how much unmatched file\-update data we had to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2098 |
+\fBLiteral data\fP is how much unmatched file-update data we had to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2099 |
send to the receiver for it to recreate the updated files. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2100 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2101 |
\fBMatched data\fP is how much data the receiver got locally when |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2102 |
recreating the updated files. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2103 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2104 |
-\fBFile list size\fP is how big the file\-list data was when the sender |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2105 |
-sent it to the receiver. This is smaller than the in\-memory size for the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2106 |
+\fBFile list size\fP is how big the file-list data was when the sender |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2107 |
+sent it to the receiver. This is smaller than the in-memory size for the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2108 |
file list due to some compressing of duplicated data when rsync sends the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2109 |
list. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2110 |
.IP o |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2111 |
@@ -2216,27 +2221,27 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2112 |
\fBTotal bytes sent\fP is the count of all the bytes that rsync sent |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2113 |
from the client side to the server side. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2114 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2115 |
-\fBTotal bytes received\fP is the count of all non\-message bytes that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2116 |
-rsync received by the client side from the server side. \(dq\&Non\-message\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2117 |
-bytes means that we don\(cq\&t count the bytes for a verbose message that the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2118 |
+\fBTotal bytes received\fP is the count of all non-message bytes that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2119 |
+rsync received by the client side from the server side. \(lqNon-message\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2120 |
+bytes means that we don't count the bytes for a verbose message that the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2121 |
server sent to us, which makes the stats more consistent. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2122 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2123 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2124 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2125 |
.IP "\fB\-8, \-\-8\-bit\-output\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2126 |
-This tells rsync to leave all high\-bit characters |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2127 |
-unescaped in the output instead of trying to test them to see if they\(cq\&re |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2128 |
+This tells rsync to leave all high-bit characters |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2129 |
+unescaped in the output instead of trying to test them to see if they're |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2130 |
valid in the current locale and escaping the invalid ones. All control |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2131 |
-characters (but never tabs) are always escaped, regardless of this option\(cq\&s |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2132 |
+characters (but never tabs) are always escaped, regardless of this option's |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2133 |
setting. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2134 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2135 |
The escape idiom that started in 2.6.7 is to output a literal backslash (\e) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2136 |
and a hash (#), followed by exactly 3 octal digits. For example, a newline |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2137 |
-would output as \(dq\&\e#012\(dq\&. A literal backslash that is in a filename is not |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2138 |
+would output as \(lq\e#012\(rq. A literal backslash that is in a filename is not |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2139 |
escaped unless it is followed by a hash and 3 digits (0\-9). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2140 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2141 |
.IP "\fB\-h, \-\-human\-readable\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2142 |
-Output numbers in a more human\-readable format. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2143 |
+Output numbers in a more human-readable format. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2144 |
This makes big numbers output using larger units, with a K, M, or G suffix. If |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2145 |
this option was specified once, these units are K (1000), M (1000*1000), and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2146 |
G (1000*1000*1000); if the option is repeated, the units are powers of 1024 |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2147 |
@@ -2257,39 +2262,39 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2148 |
dir as data to speed up the resumption of the transfer and then delete it |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2149 |
after it has served its purpose. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2150 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2151 |
-Note that if \fB\-\-whole\-file\fP is specified (or implied), any partial\-dir |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2152 |
+Note that if \fB\-\-whole\-file\fP is specified (or implied), any partial-dir |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2153 |
file that is found for a file that is being updated will simply be removed |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2154 |
(since |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2155 |
-rsync is sending files without using rsync\(cq\&s delta\-transfer algorithm). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2156 |
+rsync is sending files without using rsync's delta-transfer algorithm). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2157 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2158 |
-Rsync will create the \fIDIR\fP if it is missing (just the last dir \-\- not |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2159 |
+Rsync will create the \fIDIR\fP if it is missing (just the last dir \(em not |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2160 |
the whole path). This makes it easy to use a relative path (such as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2161 |
-\(dq\&\fB\-\-partial\-dir=.rsync\-partial\fP\(dq\&) to have rsync create the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2162 |
-partial\-directory in the destination file\(cq\&s directory when needed, and then |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2163 |
+\(lq\fB\-\-partial\-dir=.rsync\-partial\fP\(rq) to have rsync create the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2164 |
+partial-directory in the destination file's directory when needed, and then |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2165 |
remove it again when the partial file is deleted. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2166 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2167 |
-If the partial\-dir value is not an absolute path, rsync will add an exclude |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2168 |
+If the partial-dir value is not an absolute path, rsync will add an exclude |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2169 |
rule at the end of all your existing excludes. This will prevent the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2170 |
-sending of any partial\-dir files that may exist on the sending side, and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2171 |
-will also prevent the untimely deletion of partial\-dir items on the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2172 |
+sending of any partial-dir files that may exist on the sending side, and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2173 |
+will also prevent the untimely deletion of partial-dir items on the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2174 |
receiving side. An example: the above \fB\-\-partial\-dir\fP option would add |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2175 |
-the equivalent of \(dq\&\fB\-f '\&\-p .rsync\-partial/'\&\fP\(dq\& at the end of any other |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2176 |
+the equivalent of \(lq\fB\-f '\-p .rsync\-partial/'\fP\(rq at the end of any other |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2177 |
filter rules. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2178 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2179 |
If you are supplying your own exclude rules, you may need to add your own |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2180 |
-exclude/hide/protect rule for the partial\-dir because (1) the auto\-added |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2181 |
+exclude/hide/protect rule for the partial-dir because (1) the auto-added |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2182 |
rule may be ineffective at the end of your other rules, or (2) you may wish |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2183 |
-to override rsync\(cq\&s exclude choice. For instance, if you want to make |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2184 |
-rsync clean\-up any left\-over partial\-dirs that may be lying around, you |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2185 |
-should specify \fB\-\-delete\-after\fP and add a \(dq\&risk\(dq\& filter rule, e.g. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2186 |
-\fB\-f '\&R .rsync\-partial/'\&\fP. (Avoid using \fB\-\-delete\-before\fP or |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2187 |
-\fB\-\-delete\-during\fP unless you don\(cq\&t need rsync to use any of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2188 |
-left\-over partial\-dir data during the current run.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2189 |
+to override rsync's exclude choice. For instance, if you want to make |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2190 |
+rsync clean-up any left-over partial-dirs that may be lying around, you |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2191 |
+should specify \fB\-\-delete\-after\fP and add a \(lqrisk\(rq filter rule, e.g. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2192 |
+\fB\-f 'R .rsync\-partial/'\fP. (Avoid using \fB\-\-delete\-before\fP or |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2193 |
+\fB\-\-delete\-during\fP unless you don't need rsync to use any of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2194 |
+left-over partial-dir data during the current run.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2195 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2196 |
IMPORTANT: the \fB\-\-partial\-dir\fP should not be writable by other users or it |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2197 |
-is a security risk. E.g. AVOID \(dq\&/tmp\(dq\&. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2198 |
+is a security risk. E.g. AVOID \(lq/tmp\(rq. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2199 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2200 |
-You can also set the partial\-dir value the RSYNC_PARTIAL_DIR environment |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2201 |
+You can also set the partial-dir value the RSYNC_PARTIAL_DIR environment |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2202 |
variable. Setting this in the environment does not force \fB\-\-partial\fP to be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2203 |
enabled, but rather it affects where partial files go when \fB\-\-partial\fP is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2204 |
specified. For instance, instead of using \fB\-\-partial\-dir=.rsync\-tmp\fP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2205 |
@@ -2300,7 +2305,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2206 |
specified (since \fB\-\-inplace\fP conflicts with \fB\-\-partial\-dir\fP), and (2) when |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2207 |
\fB\-\-delay\-updates\fP was specified (see below). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2208 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2209 |
-For the purposes of the daemon\-config\(cq\&s \(dq\&refuse options\(dq\& setting, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2210 |
+For the purposes of the daemon-config's \(lqrefuse options\(rq setting, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2211 |
\fB\-\-partial\-dir\fP does \fInot\fP imply \fB\-\-partial\fP. This is so that a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2212 |
refusal of the \fB\-\-partial\fP option can be used to disallow the overwriting |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2213 |
of destination files with a partial transfer, while still allowing the |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2214 |
@@ -2311,12 +2316,12 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2215 |
updated file into a holding directory until the end of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2216 |
transfer, at which time all the files are renamed into place in rapid |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2217 |
succession. This attempts to make the updating of the files a little more |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2218 |
-atomic. By default the files are placed into a directory named \(dq\&.~tmp~\(dq\& in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2219 |
-each file\(cq\&s destination directory, but if you\(cq\&ve specified the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2220 |
+atomic. By default the files are placed into a directory named \(lq.~tmp~\(rq in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2221 |
+each file's destination directory, but if you've specified the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2222 |
\fB\-\-partial\-dir\fP option, that directory will be used instead. See the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2223 |
comments in the \fB\-\-partial\-dir\fP section for a discussion of how this |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2224 |
-\(dq\&.~tmp~\(dq\& dir will be excluded from the transfer, and what you can do if |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2225 |
-you want rsync to cleanup old \(dq\&.~tmp~\(dq\& dirs that might be lying around. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2226 |
+\(lq.~tmp~\(rq dir will be excluded from the transfer, and what you can do if |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2227 |
+you want rsync to cleanup old \(lq.~tmp~\(rq dirs that might be lying around. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2228 |
Conflicts with \fB\-\-inplace\fP and \fB\-\-append\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2229 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2230 |
This option uses more memory on the receiving side (one bit per file |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2231 |
@@ -2328,16 +2333,16 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2232 |
the updated files will be put into a single directory if the path is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2233 |
absolute) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2234 |
and (2) there are no mount points in the hierarchy (since the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2235 |
-delayed updates will fail if they can\(cq\&t be renamed into place). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2236 |
+delayed updates will fail if they can't be renamed into place). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2237 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2238 |
-See also the \(dq\&atomic\-rsync\(dq\& perl script in the \(dq\&support\(dq\& subdir for an |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2239 |
+See also the \(lqatomic-rsync\(rq perl script in the \(lqsupport\(rq subdir for an |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2240 |
update algorithm that is even more atomic (it uses \fB\-\-link\-dest\fP and a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2241 |
parallel hierarchy of files). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2242 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2243 |
.IP "\fB\-m, \-\-prune\-empty\-dirs\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2244 |
This option tells the receiving rsync to get |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2245 |
-rid of empty directories from the file\-list, including nested directories |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2246 |
-that have no non\-directory children. This is useful for avoiding the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2247 |
+rid of empty directories from the file-list, including nested directories |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2248 |
+that have no non-directory children. This is useful for avoiding the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2249 |
creation of a bunch of useless directories when the sending rsync is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2250 |
recursively scanning a hierarchy of files using include/exclude/filter |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2251 |
rules. |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2252 |
@@ -2346,41 +2351,41 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2253 |
not affect what goes into the file list, and thus does not leave directories |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2254 |
empty, even if none of the files in a directory match the transfer rule. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2255 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2256 |
-Because the file\-list is actually being pruned, this option also affects |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2257 |
+Because the file-list is actually being pruned, this option also affects |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2258 |
what directories get deleted when a delete is active. However, keep in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2259 |
mind that excluded files and directories can prevent existing items from |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2260 |
being deleted due to an exclude both hiding source files and protecting |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2261 |
-destination files. See the perishable filter\-rule option for how to avoid |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2262 |
+destination files. See the perishable filter-rule option for how to avoid |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2263 |
this. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2264 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2265 |
-You can prevent the pruning of certain empty directories from the file\-list |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2266 |
-by using a global \(dq\&protect\(dq\& filter. For instance, this option would ensure |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2267 |
-that the directory \(dq\&emptydir\(dq\& was kept in the file\-list: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2268 |
+You can prevent the pruning of certain empty directories from the file-list |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2269 |
+by using a global \(lqprotect\(rq filter. For instance, this option would ensure |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2270 |
+that the directory \(lqemptydir\(rq was kept in the file-list: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2271 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2272 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2273 |
-\-\-filter \(cq\&protect emptydir/\(cq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2274 |
+\-\-filter 'protect emptydir/' |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2275 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2276 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2277 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2278 |
-Here\(cq\&s an example that copies all .pdf files in a hierarchy, only creating |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2279 |
+Here's an example that copies all .pdf files in a hierarchy, only creating |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2280 |
the necessary destination directories to hold the .pdf files, and ensures |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2281 |
that any superfluous files and directories in the destination are removed |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2282 |
-(note the hide filter of non\-directories being used instead of an exclude): |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2283 |
+(note the hide filter of non-directories being used instead of an exclude): |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2284 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2285 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2286 |
-rsync \-avm \-\-del \-\-include=\(cq\&*.pdf\(cq\& \-f \(cq\&hide,! */\(cq\& src/ dest |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2287 |
+rsync \-avm \-\-del \-\-include='*.pdf' \-f 'hide,! */' src/ dest |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2288 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2289 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2290 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2291 |
-If you didn\(cq\&t want to remove superfluous destination files, the more |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2292 |
-time\-honored options of \(dq\&\fB\-\-include='\&*/'\& \-\-exclude='\&*'\&\fP\(dq\& would work fine |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2293 |
-in place of the hide\-filter (if that is more natural to you). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2294 |
+If you didn't want to remove superfluous destination files, the more |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2295 |
+time-honored options of \(lq\fB\-\-include='*/' \-\-exclude='*'\fP\(rq would work fine |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2296 |
+in place of the hide-filter (if that is more natural to you). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2297 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2298 |
.IP "\fB\-\-progress\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2299 |
This option tells rsync to print information |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2300 |
showing the progress of the transfer. This gives a bored user |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2301 |
something to watch. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2302 |
-Implies \fB\-\-verbose\fP if it wasn\(cq\&t already specified. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2303 |
+Implies \fB\-\-verbose\fP if it wasn't already specified. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2304 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2305 |
While rsync is transferring a regular file, it updates a progress line that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2306 |
looks like this: |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2307 |
@@ -2391,12 +2396,12 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2308 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2309 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2310 |
In this example, the receiver has reconstructed 782448 bytes or 63% of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2311 |
-sender\(cq\&s file, which is being reconstructed at a rate of 110.64 kilobytes |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2312 |
+sender's file, which is being reconstructed at a rate of 110.64 kilobytes |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2313 |
per second, and the transfer will finish in 4 seconds if the current rate |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2314 |
is maintained until the end. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2315 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2316 |
-These statistics can be misleading if rsync\(cq\&s delta\-transfer algorithm is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2317 |
-in use. For example, if the sender\(cq\&s file consists of the basis file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2318 |
+These statistics can be misleading if rsync's delta-transfer algorithm is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2319 |
+in use. For example, if the sender's file consists of the basis file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2320 |
followed by additional data, the reported rate will probably drop |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2321 |
dramatically when the receiver gets to the literal data, and the transfer |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2322 |
will probably take much longer to finish than the receiver estimated as it |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2323 |
@@ -2406,7 +2411,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2324 |
summary line that looks like this: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2325 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2326 |
.nf |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2327 |
- 1238099 100% 146.38kB/s 0:00:08 (xfer#5, to\-check=169/396) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2328 |
+ 1238099 100% 146.38kB/s 0:00:08 (xfer#5, to-check=169/396) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2329 |
.fi |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2330 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2331 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2332 |
@@ -2414,8 +2419,8 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2333 |
of transfer for the whole file was 146.38 kilobytes per second over the 8 |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2334 |
seconds that it took to complete, it was the 5th transfer of a regular file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2335 |
during the current rsync session, and there are 169 more files for the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2336 |
-receiver to check (to see if they are up\-to\-date or not) remaining out of |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2337 |
-the 396 total files in the file\-list. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2338 |
+receiver to check (to see if they are up-to-date or not) remaining out of |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2339 |
+the 396 total files in the file-list. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2340 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2341 |
.IP "\fB\-P\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2342 |
The \fB\-P\fP option is equivalent to \fB\-\-partial\fP \fB\-\-progress\fP. Its |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2343 |
@@ -2429,10 +2434,10 @@ |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2344 |
other lines are ignored). |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2345 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2346 |
This option does not supply a password to a remote shell transport such as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2347 |
-ssh; to learn how to do that, consult the remote shell\(cq\&s documentation. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2348 |
+ssh; to learn how to do that, consult the remote shell's documentation. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2349 |
When accessing an rsync daemon using a remote shell as the transport, this |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2350 |
option only comes into effect after the remote shell finishes its |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2351 |
-authentication (i.e. if you have also specified a password in the daemon\(cq\&s |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2352 |
+authentication (i.e. if you have also specified a password in the daemon's |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2353 |
config file). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2354 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2355 |
.IP "\fB\-\-list\-only\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2356 |
@@ -2440,9 +2445,9 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2357 |
instead of transferred. This option is inferred if there is a single source |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2358 |
arg and no destination specified, so its main uses are: (1) to turn a copy |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2359 |
command that includes a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2360 |
-destination arg into a file\-listing command, or (2) to be able to specify |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2361 |
+destination arg into a file-listing command, or (2) to be able to specify |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2362 |
more than one source arg (note: be sure to include the destination). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2363 |
-Caution: keep in mind that a source arg with a wild\-card is expanded by the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2364 |
+Caution: keep in mind that a source arg with a wild-card is expanded by the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2365 |
shell into multiple args, so it is never safe to try to list such an arg |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2366 |
without using this option. For example: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2367 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2368 |
@@ -2453,11 +2458,11 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2369 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2370 |
Compatibility note: when requesting a remote listing of files from an rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2371 |
that is version 2.6.3 or older, you may encounter an error if you ask for a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2372 |
-non\-recursive listing. This is because a file listing implies the \fB\-\-dirs\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2373 |
-option w/o \fB\-\-recursive\fP, and older rsyncs don\(cq\&t have that option. To |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2374 |
-avoid this problem, either specify the \fB\-\-no\-dirs\fP option (if you don\(cq\&t |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2375 |
-need to expand a directory\(cq\&s content), or turn on recursion and exclude |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2376 |
-the content of subdirectories: \fB\-r \-\-exclude='\&/*/*'\&\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2377 |
+non-recursive listing. This is because a file listing implies the \fB\-\-dirs\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2378 |
+option w/o \fB\-\-recursive\fP, and older rsyncs don't have that option. To |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2379 |
+avoid this problem, either specify the \fB\-\-no\-dirs\fP option (if you don't |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2380 |
+need to expand a directory's content), or turn on recursion and exclude |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2381 |
+the content of subdirectories: \fB\-r \-\-exclude='/*/*'\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2382 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2383 |
.IP "\fB\-\-bwlimit=KBPS\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2384 |
This option allows you to specify a maximum |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2385 |
@@ -2470,7 +2475,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2386 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2387 |
.IP "\fB\-\-write\-batch=FILE\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2388 |
Record a file that can later be applied to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2389 |
-another identical destination with \fB\-\-read\-batch\fP. See the \(dq\&BATCH MODE\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2390 |
+another identical destination with \fB\-\-read\-batch\fP. See the \(lqBATCH MODE\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2391 |
section for details, and also the \fB\-\-only\-write\-batch\fP option. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2392 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2393 |
.IP "\fB\-\-only\-write\-batch=FILE\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2394 |
@@ -2482,58 +2487,58 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2395 |
Note that you can feel free to write the batch directly to some portable |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2396 |
media: if this media fills to capacity before the end of the transfer, you |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2397 |
can just apply that partial transfer to the destination and repeat the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2398 |
-whole process to get the rest of the changes (as long as you don\(cq\&t mind a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2399 |
-partially updated destination system while the multi\-update cycle is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2400 |
+whole process to get the rest of the changes (as long as you don't mind a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2401 |
+partially updated destination system while the multi-update cycle is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2402 |
happening). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2403 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2404 |
Also note that you only save bandwidth when pushing changes to a remote |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2405 |
system because this allows the batched data to be diverted from the sender |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2406 |
into the batch file without having to flow over the wire to the receiver |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2407 |
-(when pulling, the sender is remote, and thus can\(cq\&t write the batch). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2408 |
+(when pulling, the sender is remote, and thus can't write the batch). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2409 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2410 |
.IP "\fB\-\-read\-batch=FILE\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2411 |
Apply all of the changes stored in FILE, a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2412 |
file previously generated by \fB\-\-write\-batch\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2413 |
If \fIFILE\fP is \fB\-\fP, the batch data will be read from standard input. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2414 |
-See the \(dq\&BATCH MODE\(dq\& section for details. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2415 |
+See the \(lqBATCH MODE\(rq section for details. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2416 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2417 |
.IP "\fB\-\-protocol=NUM\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2418 |
Force an older protocol version to be used. This |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2419 |
is useful for creating a batch file that is compatible with an older |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2420 |
version of rsync. For instance, if rsync 2.6.4 is being used with the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2421 |
\fB\-\-write\-batch\fP option, but rsync 2.6.3 is what will be used to run the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2422 |
-\fB\-\-read\-batch\fP option, you should use \(dq\&\-\-protocol=28\(dq\& when creating the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2423 |
+\fB\-\-read\-batch\fP option, you should use \(lq\-\-protocol=28\(rq when creating the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2424 |
batch file to force the older protocol version to be used in the batch |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2425 |
-file (assuming you can\(cq\&t upgrade the rsync on the reading system). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2426 |
+file (assuming you can't upgrade the rsync on the reading system). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2427 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2428 |
.IP "\fB\-\-iconv=CONVERT_SPEC\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2429 |
Rsync can convert filenames between character |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2430 |
-sets using this option. Using a CONVERT_SPEC of \(dq\&.\(dq\& tells rsync to look up |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2431 |
-the default character\-set via the locale setting. Alternately, you can |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2432 |
+sets using this option. Using a CONVERT_SPEC of \(lq.\(rq tells rsync to look up |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2433 |
+the default character-set via the locale setting. Alternately, you can |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2434 |
fully specify what conversion to do by giving a local and a remote charset |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2435 |
separated by a comma in the order \fB\-\-iconv=LOCAL,REMOTE\fP, e.g. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2436 |
\fB\-\-iconv=utf8,iso88591\fP. This order ensures that the option |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2437 |
-will stay the same whether you\(cq\&re pushing or pulling files. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2438 |
-Finally, you can specify either \fB\-\-no\-iconv\fP or a CONVERT_SPEC of \(dq\&\-\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2439 |
+will stay the same whether you're pushing or pulling files. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2440 |
+Finally, you can specify either \fB\-\-no\-iconv\fP or a CONVERT_SPEC of \(lq\-\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2441 |
to turn off any conversion. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2442 |
-The default setting of this option is site\-specific, and can also be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2443 |
+The default setting of this option is site-specific, and can also be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2444 |
affected via the RSYNC_ICONV environment variable. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2445 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2446 |
For a list of what charset names your local iconv library supports, you can |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2447 |
-run \(dq\&iconv \-\-list\(dq\&. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2448 |
+run \(lqiconv \-\-list\(rq. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2449 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2450 |
If you specify the \fB\-\-protect\-args\fP option (\fB\-s\fP), rsync will translate |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2451 |
-the filenames you specify on the command\-line that are being sent to the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2452 |
+the filenames you specify on the command-line that are being sent to the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2453 |
remote host. See also the \fB\-\-files\-from\fP option. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2454 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2455 |
Note that rsync does not do any conversion of names in filter files |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2456 |
-(including include/exclude files). It is up to you to ensure that you\(cq\&re |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2457 |
+(including include/exclude files). It is up to you to ensure that you're |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2458 |
specifying matching rules that can match on both sides of the transfer. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2459 |
For instance, you can specify extra include/exclude rules if there are |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2460 |
filename differences on the two sides that need to be accounted for. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2461 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2462 |
When you pass an \fB\-\-iconv\fP option to an rsync daemon that allows it, the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2463 |
-daemon uses the charset specified in its \(dq\&charset\(dq\& configuration parameter |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2464 |
+daemon uses the charset specified in its \(lqcharset\(rq configuration parameter |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2465 |
regardless of the remote charset you actually pass. Thus, you may feel free to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2466 |
specify just the local charset for a daemon transfer (e.g. \fB\-\-iconv=utf8\fP). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2467 |
.IP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2468 |
@@ -2584,7 +2589,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2469 |
run as a daemon with the \fB\-\-daemon\fP option. The \fB\-\-address\fP option |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2470 |
allows you to specify a specific IP address (or hostname) to bind to. This |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2471 |
makes virtual hosting possible in conjunction with the \fB\-\-config\fP option. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2472 |
-See also the \(dq\&address\(dq\& global option in the rsyncd.conf manpage. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2473 |
+See also the \(lqaddress\(rq global option in the rsyncd.conf manpage. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2474 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2475 |
.IP "\fB\-\-bwlimit=KBPS\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2476 |
This option allows you to specify a maximum |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2477 |
@@ -2597,7 +2602,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2478 |
This specifies an alternate config file than |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2479 |
the default. This is only relevant when \fB\-\-daemon\fP is specified. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2480 |
The default is /etc/rsyncd.conf unless the daemon is running over |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2481 |
-a remote shell program and the remote user is not the super\-user; in that case |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2482 |
+a remote shell program and the remote user is not the super-user; in that case |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2483 |
the default is rsyncd.conf in the current directory (typically $HOME). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2484 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2485 |
.IP "\fB\-\-no\-detach\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2486 |
@@ -2605,25 +2610,25 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2487 |
rsync to not detach itself and become a background process. This |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2488 |
option is required when running as a service on Cygwin, and may also |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2489 |
be useful when rsync is supervised by a program such as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2490 |
-\fBdaemontools\fP or AIX\(cq\&s \fBSystem Resource Controller\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2491 |
+\fBdaemontools\fP or AIX's \fBSystem Resource Controller\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2492 |
\fB\-\-no\-detach\fP is also recommended when rsync is run under a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2493 |
debugger. This option has no effect if rsync is run from inetd or |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2494 |
sshd. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2495 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2496 |
.IP "\fB\-\-port=PORT\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2497 |
This specifies an alternate TCP port number for the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2498 |
-daemon to listen on rather than the default of 873. See also the \(dq\&port\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2499 |
+daemon to listen on rather than the default of 873. See also the \(lqport\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2500 |
global option in the rsyncd.conf manpage. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2501 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2502 |
.IP "\fB\-\-log\-file=FILE\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2503 |
This option tells the rsync daemon to use the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2504 |
-given log\-file name instead of using the \(dq\&log file\(dq\& setting in the config |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2505 |
+given log-file name instead of using the \(lqlog file\(rq setting in the config |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2506 |
file. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2507 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2508 |
.IP "\fB\-\-log\-file\-format=FORMAT\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2509 |
This option tells the rsync daemon to use the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2510 |
-given FORMAT string instead of using the \(dq\&log format\(dq\& setting in the config |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2511 |
-file. It also enables \(dq\&transfer logging\(dq\& unless the string is empty, in which |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2512 |
+given FORMAT string instead of using the \(lqlog format\(rq setting in the config |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2513 |
+file. It also enables \(lqtransfer logging\(rq unless the string is empty, in which |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2514 |
case transfer logging is turned off. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2515 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2516 |
.IP "\fB\-\-sockopts\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2517 |
@@ -2633,15 +2638,15 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2518 |
.IP "\fB\-v, \-\-verbose\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2519 |
This option increases the amount of information the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2520 |
daemon logs during its startup phase. After the client connects, the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2521 |
-daemon\(cq\&s verbosity level will be controlled by the options that the client |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2522 |
-used and the \(dq\&max verbosity\(dq\& setting in the module\(cq\&s config section. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2523 |
+daemon's verbosity level will be controlled by the options that the client |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2524 |
+used and the \(lqmax verbosity\(rq setting in the module's config section. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2525 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2526 |
.IP "\fB\-4, \-\-ipv4\fP or \fB\-6, \-\-ipv6\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2527 |
Tells rsync to prefer IPv4/IPv6 |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2528 |
when creating the incoming sockets that the rsync daemon will use to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2529 |
listen for connections. One of these options may be required in older |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2530 |
versions of Linux to work around an IPv6 bug in the kernel (if you see |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2531 |
-an \(dq\&address already in use\(dq\& error when nothing else is using the port, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2532 |
+an \(lqaddress already in use\(rq error when nothing else is using the port, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2533 |
try specifying \fB\-\-ipv6\fP or \fB\-\-ipv4\fP when starting the daemon). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2534 |
.IP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2535 |
If rsync was complied without support for IPv6, the \fB\-\-ipv6\fP option |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2536 |
@@ -2669,7 +2674,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2537 |
filename is not skipped. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2538 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2539 |
Rsync builds an ordered list of filter rules as specified on the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2540 |
-command\-line. Filter rules have the following syntax: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2541 |
+command-line. Filter rules have the following syntax: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2542 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2543 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2544 |
\f(CWRULE [PATTERN_OR_FILENAME]\fP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2545 |
@@ -2680,7 +2685,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2546 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2547 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2548 |
You have your choice of using either short or long RULE names, as described |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2549 |
-below. If you use a short\-named rule, the \(cq\&,\(cq\& separating the RULE from the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2550 |
+below. If you use a short-named rule, the \(oq,\(cq separating the RULE from the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2551 |
MODIFIERS is optional. The PATTERN or FILENAME that follows (when present) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2552 |
must come after either a single space or an underscore (_). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2553 |
Here are the available rule prefixes: |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2554 |
@@ -2690,9 +2695,9 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2555 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2556 |
\fBinclude, +\fP specifies an include pattern. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2557 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2558 |
-\fBmerge, .\fP specifies a merge\-file to read for more rules. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2559 |
+\fBmerge, .\fP specifies a merge-file to read for more rules. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2560 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2561 |
-\fBdir\-merge, :\fP specifies a per\-directory merge\-file. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2562 |
+\fBdir-merge, :\fP specifies a per-directory merge-file. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2563 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2564 |
\fBhide, H\fP specifies a pattern for hiding files from the transfer. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2565 |
.br |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2566 |
@@ -2708,29 +2713,29 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2567 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2568 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2569 |
When rules are being read from a file, empty lines are ignored, as are |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2570 |
-comment lines that start with a \(dq\&#\(dq\&. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2571 |
+comment lines that start with a \(lq#\(rq. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2572 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2573 |
-Note that the \fB\-\-include\fP/\fB\-\-exclude\fP command\-line options do not allow the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2574 |
-full range of rule parsing as described above \-\- they only allow the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2575 |
-specification of include/exclude patterns plus a \(dq\&!\(dq\& token to clear the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2576 |
+Note that the \fB\-\-include\fP/\fB\-\-exclude\fP command-line options do not allow the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2577 |
+full range of rule parsing as described above \(em they only allow the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2578 |
+specification of include/exclude patterns plus a \(lq!\(rq token to clear the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2579 |
list (and the normal comment parsing when rules are read from a file). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2580 |
If a pattern |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2581 |
-does not begin with \(dq\&\- \(dq\& (dash, space) or \(dq\&+ \(dq\& (plus, space), then the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2582 |
-rule will be interpreted as if \(dq\&+ \(dq\& (for an include option) or \(dq\&\- \(dq\& (for |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2583 |
+does not begin with \(lq\- \(rq (dash, space) or \(lq+ \(rq (plus, space), then the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2584 |
+rule will be interpreted as if \(lq+ \(rq (for an include option) or \(lq\- \(rq (for |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2585 |
an exclude option) were prefixed to the string. A \fB\-\-filter\fP option, on |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2586 |
the other hand, must always contain either a short or long rule name at the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2587 |
start of the rule. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2588 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2589 |
Note also that the \fB\-\-filter\fP, \fB\-\-include\fP, and \fB\-\-exclude\fP options take one |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2590 |
rule/pattern each. To add multiple ones, you can repeat the options on |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2591 |
-the command\-line, use the merge\-file syntax of the \fB\-\-filter\fP option, or |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2592 |
+the command-line, use the merge-file syntax of the \fB\-\-filter\fP option, or |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2593 |
the \fB\-\-include\-from\fP/\fB\-\-exclude\-from\fP options. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2594 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2595 |
.SH "INCLUDE/EXCLUDE PATTERN RULES" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2596 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2597 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2598 |
-You can include and exclude files by specifying patterns using the \(dq\&+\(dq\&, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2599 |
-\(dq\&\-\(dq\&, etc. filter rules (as introduced in the FILTER RULES section above). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2600 |
+You can include and exclude files by specifying patterns using the \(lq+\(rq, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2601 |
+\(lq\-\(rq, etc. filter rules (as introduced in the FILTER RULES section above). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2602 |
The include/exclude rules each specify a pattern that is matched against |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2603 |
the names of the files that are going to be transferred. These patterns |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2604 |
can take several forms: |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2605 |
@@ -2740,15 +2745,15 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2606 |
particular spot in the hierarchy of files, otherwise it is matched |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2607 |
against the end of the pathname. This is similar to a leading ^ in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2608 |
regular expressions. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2609 |
-Thus \(dq\&/foo\(dq\& would match a name of \(dq\&foo\(dq\& at either the \(dq\&root of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2610 |
-transfer\(dq\& (for a global rule) or in the merge\-file\(cq\&s directory (for a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2611 |
-per\-directory rule). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2612 |
-An unqualified \(dq\&foo\(dq\& would match a name of \(dq\&foo\(dq\& anywhere in the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2613 |
+Thus \(lq/foo\(rq would match a name of \(lqfoo\(rq at either the \(lqroot of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2614 |
+transfer\(rq (for a global rule) or in the merge-file's directory (for a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2615 |
+per-directory rule). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2616 |
+An unqualified \(lqfoo\(rq would match a name of \(lqfoo\(rq anywhere in the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2617 |
tree because the algorithm is applied recursively from the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2618 |
top down; it behaves as if each path component gets a turn at being the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2619 |
-end of the filename. Even the unanchored \(dq\&sub/foo\(dq\& would match at |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2620 |
-any point in the hierarchy where a \(dq\&foo\(dq\& was found within a directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2621 |
-named \(dq\&sub\(dq\&. See the section on ANCHORING INCLUDE/EXCLUDE PATTERNS for |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2622 |
+end of the filename. Even the unanchored \(lqsub/foo\(rq would match at |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2623 |
+any point in the hierarchy where a \(lqfoo\(rq was found within a directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2624 |
+named \(lqsub\(rq. See the section on ANCHORING INCLUDE/EXCLUDE PATTERNS for |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2625 |
a full discussion of how to specify a pattern that matches at the root |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2626 |
of the transfer. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2627 |
.IP o |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2628 |
@@ -2757,44 +2762,44 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2629 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2630 |
rsync chooses between doing a simple string match and wildcard |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2631 |
matching by checking if the pattern contains one of these three wildcard |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2632 |
-characters: \(cq\&*\(cq\&, \(cq\&?\(cq\&, and \(cq\&[\(cq\& . |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2633 |
+characters: \(oq*\(cq, \(oq?\(cq, and \(oq[\(cq . |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2634 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2635 |
-a \(cq\&*\(cq\& matches any path component, but it stops at slashes. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2636 |
+a \(oq*\(cq matches any path component, but it stops at slashes. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2637 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2638 |
-use \(cq\&**\(cq\& to match anything, including slashes. |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2639 |
+use \(oq**\(cq to match anything, including slashes. |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2640 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2641 |
-a \(cq\&?\(cq\& matches any character except a slash (/). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2642 |
+a \(oq?\(cq matches any character except a slash (/). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2643 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2644 |
-a \(cq\&[\(cq\& introduces a character class, such as [a\-z] or [[:alpha:]]. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2645 |
+a \(oq[\(cq introduces a character class, such as [a\-z] or [[:alpha:]]. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2646 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2647 |
in a wildcard pattern, a backslash can be used to escape a wildcard |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2648 |
character, but it is matched literally when no wildcards are present. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2649 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2650 |
-if the pattern contains a / (not counting a trailing /) or a \(dq\&**\(dq\&, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2651 |
+if the pattern contains a / (not counting a trailing /) or a \(lq**\(rq, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2652 |
then it is matched against the full pathname, including any leading |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2653 |
-directories. If the pattern doesn\(cq\&t contain a / or a \(dq\&**\(dq\&, then it is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2654 |
+directories. If the pattern doesn't contain a / or a \(lq**\(rq, then it is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2655 |
matched only against the final component of the filename. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2656 |
-(Remember that the algorithm is applied recursively so \(dq\&full filename\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2657 |
+(Remember that the algorithm is applied recursively so \(lqfull filename\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2658 |
can actually be any portion of a path from the starting directory on |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2659 |
down.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2660 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2661 |
-a trailing \(dq\&dir_name/***\(dq\& will match both the directory (as if |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2662 |
-\(dq\&dir_name/\(dq\& had been specified) and everything in the directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2663 |
-(as if \(dq\&dir_name/**\(dq\& had been specified). This behavior was added in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2664 |
+a trailing \(lqdir_name/***\(rq will match both the directory (as if |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2665 |
+\(lqdir_name/\(rq had been specified) and everything in the directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2666 |
+(as if \(lqdir_name/**\(rq had been specified). This behavior was added in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2667 |
version 2.6.7. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2668 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2669 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2670 |
Note that, when using the \fB\-\-recursive\fP (\fB\-r\fP) option (which is implied by |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2671 |
\fB\-a\fP), every subcomponent of every path is visited from the top down, so |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2672 |
-include/exclude patterns get applied recursively to each subcomponent\(cq\&s |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2673 |
-full name (e.g. to include \(dq\&/foo/bar/baz\(dq\& the subcomponents \(dq\&/foo\(dq\& and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2674 |
-\(dq\&/foo/bar\(dq\& must not be excluded). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2675 |
-The exclude patterns actually short\-circuit the directory traversal stage |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2676 |
+include/exclude patterns get applied recursively to each subcomponent's |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2677 |
+full name (e.g. to include \(lq/foo/bar/baz\(rq the subcomponents \(lq/foo\(rq and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2678 |
+\(lq/foo/bar\(rq must not be excluded). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2679 |
+The exclude patterns actually short-circuit the directory traversal stage |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2680 |
when rsync finds the files to send. If a pattern excludes a particular |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2681 |
parent directory, it can render a deeper include pattern ineffectual |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2682 |
because rsync did not descend through that excluded section of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2683 |
-hierarchy. This is particularly important when using a trailing \(cq\&*\(cq\& rule. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2684 |
-For instance, this won\(cq\&t work: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2685 |
+hierarchy. This is particularly important when using a trailing \(oq*\(cq rule. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2686 |
+For instance, this won't work: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2687 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2688 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2689 |
\f(CW+ /some/path/this\-file\-will\-not\-be\-found\fP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2690 |
@@ -2806,11 +2811,11 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2691 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2692 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2693 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2694 |
-This fails because the parent directory \(dq\&some\(dq\& is excluded by the \(cq\&*\(cq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2695 |
-rule, so rsync never visits any of the files in the \(dq\&some\(dq\& or \(dq\&some/path\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2696 |
+This fails because the parent directory \(lqsome\(rq is excluded by the \(oq*\(cq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2697 |
+rule, so rsync never visits any of the files in the \(lqsome\(rq or \(lqsome/path\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2698 |
directories. One solution is to ask for all directories in the hierarchy |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2699 |
-to be included by using a single rule: \(dq\&+ */\(dq\& (put it somewhere before the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2700 |
-\(dq\&\- *\(dq\& rule), and perhaps use the \fB\-\-prune\-empty\-dirs\fP option. Another |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2701 |
+to be included by using a single rule: \(lq+ */\(rq (put it somewhere before the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2702 |
+\(lq\- *\(rq rule), and perhaps use the \fB\-\-prune\-empty\-dirs\fP option. Another |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2703 |
solution is to add specific include rules for all |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2704 |
the parent dirs that need to be visited. For instance, this set of rules |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2705 |
works fine: |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2706 |
@@ -2832,83 +2837,83 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2707 |
Here are some examples of exclude/include matching: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2708 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2709 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2710 |
-\(dq\&\- *.o\(dq\& would exclude all names matching *.o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2711 |
+\(lq\- *.o\(rq would exclude all names matching *.o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2712 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2713 |
-\(dq\&\- /foo\(dq\& would exclude a file (or directory) named foo in the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2714 |
-transfer\-root directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2715 |
+\(lq\- /foo\(rq would exclude a file (or directory) named foo in the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2716 |
+transfer-root directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2717 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2718 |
-\(dq\&\- foo/\(dq\& would exclude any directory named foo |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2719 |
+\(lq\- foo/\(rq would exclude any directory named foo |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2720 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2721 |
-\(dq\&\- /foo/*/bar\(dq\& would exclude any file named bar which is at two |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2722 |
-levels below a directory named foo in the transfer\-root directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2723 |
+\(lq\- /foo/*/bar\(rq would exclude any file named bar which is at two |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2724 |
+levels below a directory named foo in the transfer-root directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2725 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2726 |
-\(dq\&\- /foo/**/bar\(dq\& would exclude any file named bar two |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2727 |
-or more levels below a directory named foo in the transfer\-root directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2728 |
+\(lq\- /foo/**/bar\(rq would exclude any file named bar two |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2729 |
+or more levels below a directory named foo in the transfer-root directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2730 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2731 |
-The combination of \(dq\&+ */\(dq\&, \(dq\&+ *.c\(dq\&, and \(dq\&\- *\(dq\& would include all |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2732 |
+The combination of \(lq+ */\(rq, \(lq+ *.c\(rq, and \(lq\- *\(rq would include all |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2733 |
directories and C source files but nothing else (see also the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2734 |
\fB\-\-prune\-empty\-dirs\fP option) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2735 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2736 |
-The combination of \(dq\&+ foo/\(dq\&, \(dq\&+ foo/bar.c\(dq\&, and \(dq\&\- *\(dq\& would include |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2737 |
+The combination of \(lq+ foo/\(rq, \(lq+ foo/bar.c\(rq, and \(lq\- *\(rq would include |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2738 |
only the foo directory and foo/bar.c (the foo directory must be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2739 |
-explicitly included or it would be excluded by the \(dq\&*\(dq\&) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2740 |
+explicitly included or it would be excluded by the \(lq*\(rq) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2741 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2742 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2743 |
-The following modifiers are accepted after a \(dq\&+\(dq\& or \(dq\&\-\(dq\&: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2744 |
+The following modifiers are accepted after a \(lq+\(rq or \(lq\-\(rq: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2745 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2746 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2747 |
A \fB/\fP specifies that the include/exclude rule should be matched |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2748 |
against the absolute pathname of the current item. For example, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2749 |
-\(dq\&\-/ /etc/passwd\(dq\& would exclude the passwd file any time the transfer |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2750 |
-was sending files from the \(dq\&/etc\(dq\& directory, and \(dq\&\-/ subdir/foo\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2751 |
-would always exclude \(dq\&foo\(dq\& when it is in a dir named \(dq\&subdir\(dq\&, even |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2752 |
-if \(dq\&foo\(dq\& is at the root of the current transfer. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2753 |
+\(lq\-/ /etc/passwd\(rq would exclude the passwd file any time the transfer |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2754 |
+was sending files from the \(lq/etc\(rq directory, and \(lq\-/ subdir/foo\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2755 |
+would always exclude \(lqfoo\(rq when it is in a dir named \(lqsubdir\(rq, even |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2756 |
+if \(lqfoo\(rq is at the root of the current transfer. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2757 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2758 |
A \fB!\fP specifies that the include/exclude should take effect if |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2759 |
-the pattern fails to match. For instance, \(dq\&\-! */\(dq\& would exclude all |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2760 |
-non\-directories. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2761 |
+the pattern fails to match. For instance, \(lq\-! */\(rq would exclude all |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2762 |
+non-directories. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2763 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2764 |
-A \fBC\fP is used to indicate that all the global CVS\-exclude rules |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2765 |
-should be inserted as excludes in place of the \(dq\&\-C\(dq\&. No arg should |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2766 |
+A \fBC\fP is used to indicate that all the global CVS-exclude rules |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2767 |
+should be inserted as excludes in place of the \(lq\-C\(rq. No arg should |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2768 |
follow. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2769 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2770 |
An \fBs\fP is used to indicate that the rule applies to the sending |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2771 |
side. When a rule affects the sending side, it prevents files from |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2772 |
being transferred. The default is for a rule to affect both sides |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2773 |
unless \fB\-\-delete\-excluded\fP was specified, in which case default rules |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2774 |
-become sender\-side only. See also the hide (H) and show (S) rules, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2775 |
-which are an alternate way to specify sending\-side includes/excludes. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2776 |
+become sender-side only. See also the hide (H) and show (S) rules, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2777 |
+which are an alternate way to specify sending-side includes/excludes. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2778 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2779 |
An \fBr\fP is used to indicate that the rule applies to the receiving |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2780 |
side. When a rule affects the receiving side, it prevents files from |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2781 |
being deleted. See the \fBs\fP modifier for more info. See also the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2782 |
protect (P) and risk (R) rules, which are an alternate way to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2783 |
-specify receiver\-side includes/excludes. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2784 |
+specify receiver-side includes/excludes. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2785 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2786 |
A \fBp\fP indicates that a rule is perishable, meaning that it is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2787 |
ignored in directories that are being deleted. For instance, the \fB\-C\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2788 |
-option\(cq\&s default rules that exclude things like \(dq\&CVS\(dq\& and \(dq\&*.o\(dq\& are |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2789 |
+option's default rules that exclude things like \(lqCVS\(rq and \(lq*.o\(rq are |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2790 |
marked as perishable, and will not prevent a directory that was removed |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2791 |
on the source from being deleted on the destination. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2792 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2793 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2794 |
-.SH "MERGE\-FILE FILTER RULES" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2795 |
+.SH "MERGE-FILE FILTER RULES" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2796 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2797 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2798 |
You can merge whole files into your filter rules by specifying either a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2799 |
-merge (.) or a dir\-merge (:) filter rule (as introduced in the FILTER RULES |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2800 |
+merge (.) or a dir-merge (:) filter rule (as introduced in the FILTER RULES |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2801 |
section above). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2802 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2803 |
-There are two kinds of merged files \-\- single\-instance (\(cq\&.\(cq\&) and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2804 |
-per\-directory (\(cq\&:\(cq\&). A single\-instance merge file is read one time, and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2805 |
-its rules are incorporated into the filter list in the place of the \(dq\&.\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2806 |
-rule. For per\-directory merge files, rsync will scan every directory that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2807 |
+There are two kinds of merged files \(em single-instance (\(oq.\(cq) and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2808 |
+per-directory (\(oq:\(cq). A single-instance merge file is read one time, and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2809 |
+its rules are incorporated into the filter list in the place of the \(lq.\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2810 |
+rule. For per-directory merge files, rsync will scan every directory that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2811 |
it traverses for the named file, merging its contents when the file exists |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2812 |
-into the current list of inherited rules. These per\-directory rule files |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2813 |
+into the current list of inherited rules. These per-directory rule files |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2814 |
must be created on the sending side because it is the sending side that is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2815 |
being scanned for the available files to transfer. These rule files may |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2816 |
also need to be transferred to the receiving side if you want them to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2817 |
-affect what files don\(cq\&t get deleted (see PER\-DIRECTORY RULES AND DELETE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2818 |
+affect what files don't get deleted (see PER-DIRECTORY RULES AND DELETE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2819 |
below). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2820 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2821 |
Some examples: |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2822 |
@@ -2920,67 +2925,67 @@ |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2823 |
.br |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2824 |
\f(CWdir\-merge .per\-dir\-filter\fP |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2825 |
.br |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2826 |
-\f(CWdir\-merge,n\- .non\-inherited\-per\-dir\-excludes\fP |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2827 |
+\f(CWdir\-merge,n\- .non-inherited\-per\-dir\-excludes\fP |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2828 |
.br |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2829 |
-\f(CW:n\- .non\-inherited\-per\-dir\-excludes\fP |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2830 |
+\f(CW:n\- .non-inherited\-per\-dir\-excludes\fP |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2831 |
.br |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2832 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2833 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2834 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2835 |
-The following modifiers are accepted after a merge or dir\-merge rule: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2836 |
+The following modifiers are accepted after a merge or dir-merge rule: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2837 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2838 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2839 |
A \fB\-\fP specifies that the file should consist of only exclude |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2840 |
-patterns, with no other rule\-parsing except for in\-file comments. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2841 |
+patterns, with no other rule-parsing except for in-file comments. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2842 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2843 |
A \fB+\fP specifies that the file should consist of only include |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2844 |
-patterns, with no other rule\-parsing except for in\-file comments. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2845 |
+patterns, with no other rule-parsing except for in-file comments. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2846 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2847 |
A \fBC\fP is a way to specify that the file should be read in a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2848 |
-CVS\-compatible manner. This turns on \(cq\&n\(cq\&, \(cq\&w\(cq\&, and \(cq\&\-\(cq\&, but also |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2849 |
+CVS-compatible manner. This turns on \(oqn\(cq, \(oqw\(cq, and '\-', but also |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2850 |
allows the list\-clearing token (!) to be specified. If no filename is |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2851 |
-provided, \(dq\&.cvsignore\(dq\& is assumed. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2852 |
+provided, \(lq.cvsignore\(rq is assumed. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2853 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2854 |
-A \fBe\fP will exclude the merge\-file name from the transfer; e.g. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2855 |
-\(dq\&dir\-merge,e .rules\(dq\& is like \(dq\&dir\-merge .rules\(dq\& and \(dq\&\- .rules\(dq\&. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2856 |
+A \fBe\fP will exclude the merge-file name from the transfer; e.g. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2857 |
+\(lqdir-merge,e .rules\(rq is like \(lqdir-merge .rules\(rq and \(lq\- .rules\(rq. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2858 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2859 |
An \fBn\fP specifies that the rules are not inherited by subdirectories. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2860 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2861 |
-A \fBw\fP specifies that the rules are word\-split on whitespace instead |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2862 |
-of the normal line\-splitting. This also turns off comments. Note: the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2863 |
+A \fBw\fP specifies that the rules are word-split on whitespace instead |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2864 |
+of the normal line-splitting. This also turns off comments. Note: the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2865 |
space that separates the prefix from the rule is treated specially, so |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2866 |
-\(dq\&\- foo + bar\(dq\& is parsed as two rules (assuming that prefix\-parsing wasn\(cq\&t |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2867 |
+\(lq\- foo + bar\(rq is parsed as two rules (assuming that prefix-parsing wasn't |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2868 |
also disabled). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2869 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2870 |
-You may also specify any of the modifiers for the \(dq\&+\(dq\& or \(dq\&\-\(dq\& rules |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2871 |
+You may also specify any of the modifiers for the \(lq+\(rq or \(lq\-\(rq rules |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2872 |
(above) in order to have the rules that are read in from the file |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2873 |
default to having that modifier set (except for the \fB!\fP modifier, which |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2874 |
-would not be useful). For instance, \(dq\&merge,\-/ .excl\(dq\& would |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2875 |
-treat the contents of .excl as absolute\-path excludes, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2876 |
-while \(dq\&dir\-merge,s .filt\(dq\& and \(dq\&:sC\(dq\& would each make all their |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2877 |
-per\-directory rules apply only on the sending side. If the merge rule |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2878 |
+would not be useful). For instance, \(lqmerge,\-/ .excl\(rq would |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2879 |
+treat the contents of .excl as absolute-path excludes, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2880 |
+while \(lqdir-merge,s .filt\(rq and \(lq:sC\(rq would each make all their |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2881 |
+per-directory rules apply only on the sending side. If the merge rule |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2882 |
specifies sides to affect (via the \fBs\fP or \fBr\fP modifier or both), |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2883 |
then the rules in the file must not specify sides (via a modifier or |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2884 |
a rule prefix such as \fBhide\fP). |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2885 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2886 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2887 |
-Per\-directory rules are inherited in all subdirectories of the directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2888 |
-where the merge\-file was found unless the \(cq\&n\(cq\& modifier was used. Each |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2889 |
-subdirectory\(cq\&s rules are prefixed to the inherited per\-directory rules |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2890 |
+Per-directory rules are inherited in all subdirectories of the directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2891 |
+where the merge-file was found unless the \(oqn\(cq modifier was used. Each |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2892 |
+subdirectory's rules are prefixed to the inherited per-directory rules |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2893 |
from its parents, which gives the newest rules a higher priority than the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2894 |
-inherited rules. The entire set of dir\-merge rules are grouped together in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2895 |
-the spot where the merge\-file was specified, so it is possible to override |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2896 |
-dir\-merge rules via a rule that got specified earlier in the list of global |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2897 |
-rules. When the list\-clearing rule (\(dq\&!\(dq\&) is read from a per\-directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2898 |
+inherited rules. The entire set of dir-merge rules are grouped together in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2899 |
+the spot where the merge-file was specified, so it is possible to override |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2900 |
+dir-merge rules via a rule that got specified earlier in the list of global |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2901 |
+rules. When the list-clearing rule (\(lq!\(rq) is read from a per-directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2902 |
file, it only clears the inherited rules for the current merge file. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2903 |
.PP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2904 |
Another way to prevent a single rule from a dir\-merge file from being inherited is to |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2905 |
anchor it with a leading slash. Anchored rules in a per\-directory |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2906 |
-merge\-file are relative to the merge\-file\(cq\&s directory, so a pattern \(dq\&/foo\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2907 |
-would only match the file \(dq\&foo\(dq\& in the directory where the dir\-merge filter |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2908 |
+merge\-file are relative to the merge\-file's directory, so a pattern \(lq/foo\(rq |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2909 |
+would only match the file \(lqfoo\(rq in the directory where the dir\-merge filter |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2910 |
file was found. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2911 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2912 |
-Here\(cq\&s an example filter file which you\(cq\&d specify via \fB\-\-filter=\(dq\&. file\(dq\&:\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2913 |
+Here's an example filter file which you'd specify via \fB\-\-filter=". file":\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2914 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2915 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2916 |
\f(CWmerge /home/user/.global\-filter\fP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2917 |
@@ -2996,58 +3001,58 @@ |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2918 |
.RE |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2919 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2920 |
.PP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2921 |
-This will merge the contents of the /home/user/.global\-filter file at the |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2922 |
-start of the list and also turns the \(dq\&.rules\(dq\& filename into a per\-directory |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2923 |
+This will merge the contents of the /home/user/.global-filter file at the |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2924 |
+start of the list and also turns the \(lq.rules\(rq filename into a per-directory |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2925 |
filter file. All rules read in prior to the start of the directory scan |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2926 |
follow the global anchoring rules (i.e. a leading slash matches at the root |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2927 |
of the transfer). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2928 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2929 |
-If a per\-directory merge\-file is specified with a path that is a parent |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2930 |
+If a per-directory merge-file is specified with a path that is a parent |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2931 |
directory of the first transfer directory, rsync will scan all the parent |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2932 |
dirs from that starting point to the transfer directory for the indicated |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2933 |
-per\-directory file. For instance, here is a common filter (see \fB\-F\fP): |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2934 |
+per-directory file. For instance, here is a common filter (see \fB\-F\fP): |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2935 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2936 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2937 |
-\f(CW\-\-filter='\&: /.rsync\-filter'\&\fP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2938 |
+\f(CW\-\-filter=': /.rsync-filter'\fP |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2939 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2940 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2941 |
.PP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2942 |
-That rule tells rsync to scan for the file .rsync\-filter in all |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2943 |
+That rule tells rsync to scan for the file .rsync-filter in all |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2944 |
directories from the root down through the parent directory of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2945 |
transfer prior to the start of the normal directory scan of the file in |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2946 |
the directories that are sent as a part of the transfer. (Note: for an |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2947 |
-rsync daemon, the root is always the same as the module\(cq\&s \(dq\&path\(dq\&.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2948 |
+rsync daemon, the root is always the same as the module's \(lqpath\(rq.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2949 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2950 |
-Some examples of this pre\-scanning for per\-directory files: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2951 |
+Some examples of this pre-scanning for per-directory files: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2952 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2953 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2954 |
\f(CWrsync \-avF /src/path/ /dest/dir\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2955 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2956 |
-\f(CWrsync \-av \-\-filter='\&: ../../.rsync\-filter'\& /src/path/ /dest/dir\fP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2957 |
+\f(CWrsync \-av \-\-filter=': ../../.rsync-filter' /src/path/ /dest/dir\fP |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2958 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2959 |
-\f(CWrsync \-av \-\-filter='\&: .rsync\-filter'\& /src/path/ /dest/dir\fP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2960 |
+\f(CWrsync \-av \-\-filter=': .rsync-filter' /src/path/ /dest/dir\fP |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2961 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2962 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2963 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2964 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2965 |
-The first two commands above will look for \(dq\&.rsync\-filter\(dq\& in \(dq\&/\(dq\& and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2966 |
-\(dq\&/src\(dq\& before the normal scan begins looking for the file in \(dq\&/src/path\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2967 |
-and its subdirectories. The last command avoids the parent\-dir scan |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2968 |
-and only looks for the \(dq\&.rsync\-filter\(dq\& files in each directory that is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2969 |
+The first two commands above will look for \(lq.rsync\-filter\(rq in \(lq/\(rq and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2970 |
+\(lq/src\(rq before the normal scan begins looking for the file in \(lq/src/path\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2971 |
+and its subdirectories. The last command avoids the parent-dir scan |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2972 |
+and only looks for the \(lq.rsync-filter\(rq files in each directory that is |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2973 |
a part of the transfer. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2974 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2975 |
-If you want to include the contents of a \(dq\&.cvsignore\(dq\& in your patterns, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2976 |
-you should use the rule \(dq\&:C\(dq\&, which creates a dir\-merge of the .cvsignore |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2977 |
-file, but parsed in a CVS\-compatible manner. You can |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2978 |
-use this to affect where the \fB\-\-cvs\-exclude\fP (\fB\-C\fP) option\(cq\&s inclusion of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2979 |
-per\-directory .cvsignore file gets placed into your rules by putting the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2980 |
-\(dq\&:C\(dq\& wherever you like in your filter rules. Without this, rsync would |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2981 |
-add the dir\-merge rule for the .cvsignore file at the end of all your other |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2982 |
-rules (giving it a lower priority than your command\-line rules). For |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2983 |
+If you want to include the contents of a \(lq.cvsignore\(rq in your patterns, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2984 |
+you should use the rule \(lq:C\(rq, which creates a dir-merge of the .cvsignore |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2985 |
+file, but parsed in a CVS-compatible manner. You can |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2986 |
+use this to affect where the \fB\-\-cvs\-exclude\fP (\fB\-C\fP) option's inclusion of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2987 |
+per-directory .cvsignore file gets placed into your rules by putting the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2988 |
+\(lq:C\(rq wherever you like in your filter rules. Without this, rsync would |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2989 |
+add the dir-merge rule for the .cvsignore file at the end of all your other |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2990 |
+rules (giving it a lower priority than your command-line rules). For |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2991 |
example: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2992 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2993 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2994 |
-\f(CWcat <<EOT | rsync \-avC \-\-filter='\&. \-'\& a/ b\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2995 |
+\f(CWcat <<EOT | rsync \-avC \-\-filter='. \-' a/ b\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2996 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2997 |
\f(CW+ foo.o\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
2998 |
.br |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
2999 |
@@ -3057,49 +3062,49 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3000 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3001 |
\f(CWEOT\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3002 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3003 |
-\f(CWrsync \-avC \-\-include=foo.o \-f :C \-\-exclude='\&*.old'\& a/ b\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3004 |
+\f(CWrsync \-avC \-\-include=foo.o \-f :C \-\-exclude='*.old' a/ b\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3005 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3006 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3007 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3008 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3009 |
Both of the above rsync commands are identical. Each one will merge all |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3010 |
-the per\-directory .cvsignore rules in the middle of the list rather than |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3011 |
-at the end. This allows their dir\-specific rules to supersede the rules |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3012 |
+the per-directory .cvsignore rules in the middle of the list rather than |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3013 |
+at the end. This allows their dir-specific rules to supersede the rules |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3014 |
that follow the :C instead of being subservient to all your rules. To |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3015 |
affect the other CVS exclude rules (i.e. the default list of exclusions, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3016 |
the contents of $HOME/.cvsignore, and the value of $CVSIGNORE) you should |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3017 |
-omit the \fB\-C\fP command\-line option and instead insert a \(dq\&\-C\(dq\& rule into |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3018 |
-your filter rules; e.g. \(dq\&\fB\-\-filter=\-C\fP\(dq\&. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3019 |
+omit the \fB\-C\fP command-line option and instead insert a \(lq\-C\(rq rule into |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3020 |
+your filter rules; e.g. \(lq\fB\-\-filter=\-C\fP\(rq. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3021 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3022 |
-.SH "LIST\-CLEARING FILTER RULE" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3023 |
+.SH "LIST-CLEARING FILTER RULE" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3024 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3025 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3026 |
-You can clear the current include/exclude list by using the \(dq\&!\(dq\& filter |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3027 |
-rule (as introduced in the FILTER RULES section above). The \(dq\¤t\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3028 |
+You can clear the current include/exclude list by using the \(lq!\(rq filter |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3029 |
+rule (as introduced in the FILTER RULES section above). The \(lqcurrent\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3030 |
list is either the global list of rules (if the rule is encountered while |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3031 |
-parsing the filter options) or a set of per\-directory rules (which are |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3032 |
-inherited in their own sub\-list, so a subdirectory can use this to clear |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3033 |
-out the parent\(cq\&s rules). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3034 |
+parsing the filter options) or a set of per-directory rules (which are |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3035 |
+inherited in their own sub-list, so a subdirectory can use this to clear |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3036 |
+out the parent's rules). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3037 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3038 |
.SH "ANCHORING INCLUDE/EXCLUDE PATTERNS" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3039 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3040 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3041 |
As mentioned earlier, global include/exclude patterns are anchored at the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3042 |
-\(dq\&root of the transfer\(dq\& (as opposed to per\-directory patterns, which are |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3043 |
-anchored at the merge\-file\(cq\&s directory). If you think of the transfer as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3044 |
+\(lqroot of the transfer\(rq (as opposed to per-directory patterns, which are |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3045 |
+anchored at the merge-file's directory). If you think of the transfer as |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3046 |
a subtree of names that are being sent from sender to receiver, the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3047 |
-transfer\-root is where the tree starts to be duplicated in the destination |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3048 |
+transfer-root is where the tree starts to be duplicated in the destination |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3049 |
directory. This root governs where patterns that start with a / match. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3050 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3051 |
-Because the matching is relative to the transfer\-root, changing the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3052 |
+Because the matching is relative to the transfer-root, changing the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3053 |
trailing slash on a source path or changing your use of the \fB\-\-relative\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3054 |
option affects the path you need to use in your matching (in addition to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3055 |
changing how much of the file tree is duplicated on the destination |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3056 |
host). The following examples demonstrate this. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3057 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3058 |
-Let\(cq\&s say that we want to match two source files, one with an absolute |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3059 |
-path of \(dq\&/home/me/foo/bar\(dq\&, and one with a path of \(dq\&/home/you/bar/baz\(dq\&. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3060 |
-Here is how the various command choices differ for a 2\-source transfer: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3061 |
+Let's say that we want to match two source files, one with an absolute |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3062 |
+path of \(lq/home/me/foo/bar\(rq, and one with a path of \(lq/home/you/bar/baz\(rq. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3063 |
+Here is how the various command choices differ for a 2-source transfer: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3064 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3065 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3066 |
Example cmd: rsync \-a /home/me /home/you /dest |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3067 |
@@ -3118,9 +3123,9 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3068 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3069 |
Example cmd: rsync \-a /home/me/ /home/you/ /dest |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3070 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3071 |
-+/\- pattern: /foo/bar (note missing \(dq\&me\(dq\&) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3072 |
++/\- pattern: /foo/bar (note missing \(lqme\(rq) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3073 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3074 |
-+/\- pattern: /bar/baz (note missing \(dq\&you\(dq\&) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3075 |
++/\- pattern: /bar/baz (note missing \(lqyou\(rq) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3076 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3077 |
Target file: /dest/foo/bar |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3078 |
.br |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3079 |
@@ -3159,28 +3164,28 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3080 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3081 |
The easiest way to see what name you should filter is to just |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3082 |
look at the output when using \fB\-\-verbose\fP and put a / in front of the name |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3083 |
-(use the \fB\-\-dry\-run\fP option if you\(cq\&re not yet ready to copy any files). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3084 |
+(use the \fB\-\-dry\-run\fP option if you're not yet ready to copy any files). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3085 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3086 |
-.SH "PER\-DIRECTORY RULES AND DELETE" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3087 |
+.SH "PER-DIRECTORY RULES AND DELETE" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3088 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3089 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3090 |
-Without a delete option, per\-directory rules are only relevant on the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3091 |
+Without a delete option, per-directory rules are only relevant on the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3092 |
sending side, so you can feel free to exclude the merge files themselves |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3093 |
-without affecting the transfer. To make this easy, the \(cq\&e\(cq\& modifier adds |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3094 |
+without affecting the transfer. To make this easy, the \(oqe\(cq modifier adds |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3095 |
this exclude for you, as seen in these two equivalent commands: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3096 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3097 |
.RS |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3098 |
-\f(CWrsync \-av \-\-filter='\&: .excl'\& \-\-exclude=.excl host:src/dir /dest\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3099 |
+\f(CWrsync \-av \-\-filter=': .excl' \-\-exclude=.excl host:src/dir /dest\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3100 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3101 |
-\f(CWrsync \-av \-\-filter='\&:e .excl'\& host:src/dir /dest\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3102 |
+\f(CWrsync \-av \-\-filter=':e .excl' host:src/dir /dest\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3103 |
.br |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3104 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3105 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3106 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3107 |
However, if you want to do a delete on the receiving side AND you want some |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3108 |
-files to be excluded from being deleted, you\(cq\&ll need to be sure that the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3109 |
+files to be excluded from being deleted, you'll need to be sure that the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3110 |
receiving side knows what files to exclude. The easiest way is to include |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3111 |
-the per\-directory merge files in the transfer and use \fB\-\-delete\-after\fP, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3112 |
+the per-directory merge files in the transfer and use \fB\-\-delete\-after\fP, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3113 |
because this ensures that the receiving side gets all the same exclude |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3114 |
rules as the sending side before it tries to delete anything: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3115 |
.PP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3116 |
@@ -3189,14 +3194,14 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3117 |
.RE |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3118 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3119 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3120 |
-However, if the merge files are not a part of the transfer, you\(cq\&ll need to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3121 |
+However, if the merge files are not a part of the transfer, you'll need to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3122 |
either specify some global exclude rules (i.e. specified on the command |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3123 |
-line), or you\(cq\&ll need to maintain your own per\-directory merge files on |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3124 |
+line), or you'll need to maintain your own per-directory merge files on |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3125 |
the receiving side. An example of the first is this (assume that the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3126 |
remote .rules files exclude themselves): |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3127 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3128 |
.nf |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3129 |
-rsync \-av \-\-filter=\(cq\&: .rules\(cq\& \-\-filter=\(cq\&. /my/extra.rules\(cq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3130 |
+rsync \-av \-\-filter=': .rules' \-\-filter='. /my/extra.rules' |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3131 |
\-\-delete host:src/dir /dest |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3132 |
.fi |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3133 |
|
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3134 |
@@ -3204,17 +3209,17 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3135 |
In the above example the extra.rules file can affect both sides of the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3136 |
transfer, but (on the sending side) the rules are subservient to the rules |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3137 |
merged from the .rules files because they were specified after the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3138 |
-per\-directory merge rule. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3139 |
+per-directory merge rule. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3140 |
.PP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3141 |
-In one final example, the remote side is excluding the .rsync\-filter |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3142 |
-files from the transfer, but we want to use our own .rsync\-filter files |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3143 |
+In one final example, the remote side is excluding the .rsync-filter |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3144 |
+files from the transfer, but we want to use our own .rsync-filter files |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3145 |
to control what gets deleted on the receiving side. To do this we must |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3146 |
-specifically exclude the per\-directory merge files (so that they don\(cq\&t get |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3147 |
+specifically exclude the per-directory merge files (so that they don't get |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3148 |
deleted) and then put rules into the local files to control what else |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3149 |
should not get deleted. Like one of these commands: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3150 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3151 |
.nf |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3152 |
- rsync \-av \-\-filter='\&:e /.rsync\-filter'\& \-\-delete \e |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3153 |
+ rsync \-av \-\-filter=':e /.rsync\-filter' \-\-delete \e |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3154 |
host:src/dir /dest |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3155 |
rsync \-avFF \-\-delete host:src/dir /dest |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3156 |
.fi |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3157 |
@@ -3228,9 +3233,9 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3158 |
number of hosts. Now suppose some changes have been made to this |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3159 |
source tree and those changes need to be propagated to the other |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3160 |
hosts. In order to do this using batch mode, rsync is run with the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3161 |
-write\-batch option to apply the changes made to the source tree to one |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3162 |
-of the destination trees. The write\-batch option causes the rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3163 |
-client to store in a \(dq\&batch file\(dq\& all the information needed to repeat |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3164 |
+write-batch option to apply the changes made to the source tree to one |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3165 |
+of the destination trees. The write-batch option causes the rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3166 |
+client to store in a \(lqbatch file\(rq all the information needed to repeat |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3167 |
this operation against other, identical destination trees. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3168 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3169 |
Generating the batch file once saves having to perform the file |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3170 |
@@ -3240,15 +3245,15 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3171 |
at once, instead of sending the same data to every host individually. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3172 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3173 |
To apply the recorded changes to another destination tree, run rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3174 |
-with the read\-batch option, specifying the name of the same batch |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3175 |
+with the read-batch option, specifying the name of the same batch |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3176 |
file, and the destination tree. Rsync updates the destination tree |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3177 |
using the information stored in the batch file. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3178 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3179 |
-For your convenience, a script file is also created when the write\-batch |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3180 |
-option is used: it will be named the same as the batch file with \(dq\&.sh\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3181 |
-appended. This script file contains a command\-line suitable for updating a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3182 |
+For your convenience, a script file is also created when the write-batch |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3183 |
+option is used: it will be named the same as the batch file with \(lq.sh\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3184 |
+appended. This script file contains a command-line suitable for updating a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3185 |
destination tree using the associated batch file. It can be executed using |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3186 |
-a Bourne (or Bourne\-like) shell, optionally passing in an alternate |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3187 |
+a Bourne (or Bourne-like) shell, optionally passing in an alternate |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3188 |
destination tree pathname which is then used instead of the original |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3189 |
destination path. This is useful when the destination tree path on the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3190 |
current host differs from the one used to create the batch file. |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3191 |
@@ -3274,68 +3279,68 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3192 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3193 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3194 |
In these examples, rsync is used to update /adest/dir/ from /source/dir/ |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3195 |
-and the information to repeat this operation is stored in \(dq\&foo\(dq\& and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3196 |
-\(dq\&foo.sh\(dq\&. The host \(dq\&remote\(dq\& is then updated with the batched data going |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3197 |
+and the information to repeat this operation is stored in \(lqfoo\(rq and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3198 |
+\(lqfoo.sh\(rq. The host \(lqremote\(rq is then updated with the batched data going |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3199 |
into the directory /bdest/dir. The differences between the two examples |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3200 |
reveals some of the flexibility you have in how you deal with batches: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3201 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3202 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3203 |
-The first example shows that the initial copy doesn\(cq\&t have to be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3204 |
-local \-\- you can push or pull data to/from a remote host using either the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3205 |
-remote\-shell syntax or rsync daemon syntax, as desired. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3206 |
+The first example shows that the initial copy doesn't have to be |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3207 |
+local \(em you can push or pull data to/from a remote host using either the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3208 |
+remote-shell syntax or rsync daemon syntax, as desired. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3209 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3210 |
-The first example uses the created \(dq\&foo.sh\(dq\& file to get the right |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3211 |
-rsync options when running the read\-batch command on the remote host. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3212 |
+The first example uses the created \(lqfoo.sh\(rq file to get the right |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3213 |
+rsync options when running the read-batch command on the remote host. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3214 |
.IP o |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3215 |
The second example reads the batch data via standard input so that |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3216 |
-the batch file doesn\(cq\&t need to be copied to the remote machine first. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3217 |
+the batch file doesn't need to be copied to the remote machine first. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3218 |
This example avoids the foo.sh script because it needed to use a modified |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3219 |
\fB\-\-read\-batch\fP option, but you could edit the script file if you wished to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3220 |
make use of it (just be sure that no other option is trying to use |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3221 |
-standard input, such as the \(dq\&\fB\-\-exclude\-from=\-\fP\(dq\& option). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3222 |
+standard input, such as the \(lq\fB\-\-exclude\-from=\-\fP\(rq option). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3223 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3224 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3225 |
Caveats: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3226 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3227 |
-The read\-batch option expects the destination tree that it is updating |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3228 |
+The read-batch option expects the destination tree that it is updating |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3229 |
to be identical to the destination tree that was used to create the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3230 |
batch update fileset. When a difference between the destination trees |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3231 |
is encountered the update might be discarded with a warning (if the file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3232 |
-appears to be up\-to\-date already) or the file\-update may be attempted |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3233 |
+appears to be up-to-date already) or the file-update may be attempted |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3234 |
and then, if the file fails to verify, the update discarded with an |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3235 |
-error. This means that it should be safe to re\-run a read\-batch operation |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3236 |
-if the command got interrupted. If you wish to force the batched\-update to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3237 |
-always be attempted regardless of the file\(cq\&s size and date, use the \fB\-I\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3238 |
+error. This means that it should be safe to re-run a read-batch operation |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3239 |
+if the command got interrupted. If you wish to force the batched-update to |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3240 |
+always be attempted regardless of the file's size and date, use the \fB\-I\fP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3241 |
option (when reading the batch). |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3242 |
If an error occurs, the destination tree will probably be in a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3243 |
partially updated state. In that case, rsync can |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3244 |
-be used in its regular (non\-batch) mode of operation to fix up the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3245 |
+be used in its regular (non-batch) mode of operation to fix up the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3246 |
destination tree. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3247 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3248 |
The rsync version used on all destinations must be at least as new as the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3249 |
one used to generate the batch file. Rsync will die with an error if the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3250 |
-protocol version in the batch file is too new for the batch\-reading rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3251 |
+protocol version in the batch file is too new for the batch-reading rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3252 |
to handle. See also the \fB\-\-protocol\fP option for a way to have the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3253 |
creating rsync generate a batch file that an older rsync can understand. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3254 |
(Note that batch files changed format in version 2.6.3, so mixing versions |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3255 |
older than that with newer versions will not work.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3256 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3257 |
When reading a batch file, rsync will force the value of certain options |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3258 |
-to match the data in the batch file if you didn\(cq\&t set them to the same |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3259 |
-as the batch\-writing command. Other options can (and should) be changed. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3260 |
+to match the data in the batch file if you didn't set them to the same |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3261 |
+as the batch-writing command. Other options can (and should) be changed. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3262 |
For instance \fB\-\-write\-batch\fP changes to \fB\-\-read\-batch\fP, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3263 |
\fB\-\-files\-from\fP is dropped, and the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3264 |
\fB\-\-filter\fP/\fB\-\-include\fP/\fB\-\-exclude\fP options are not needed unless |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3265 |
one of the \fB\-\-delete\fP options is specified. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3266 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3267 |
The code that creates the BATCH.sh file transforms any filter/include/exclude |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3268 |
-options into a single list that is appended as a \(dq\&here\(dq\& document to the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3269 |
+options into a single list that is appended as a \(lqhere\(rq document to the |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3270 |
shell script file. An advanced user can use this to modify the exclude |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3271 |
list if a change in what gets deleted by \fB\-\-delete\fP is desired. A normal |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3272 |
user can ignore this detail and just use the shell script as an easy way |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3273 |
to run the appropriate \fB\-\-read\-batch\fP command for the batched data. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3274 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3275 |
-The original batch mode in rsync was based on \(dq\&rsync+\(dq\&, but the latest |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3276 |
+The original batch mode in rsync was based on \(lqrsync+\(rq, but the latest |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3277 |
version uses a new implementation. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3278 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3279 |
.SH "SYMBOLIC LINKS" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3280 |
@@ -3345,16 +3350,16 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3281 |
link in the source directory. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3282 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3283 |
By default, symbolic links are not transferred at all. A message |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3284 |
-\(dq\&skipping non\-regular\(dq\& file is emitted for any symlinks that exist. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3285 |
+\(lqskipping non-regular\(rq file is emitted for any symlinks that exist. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3286 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3287 |
If \fB\-\-links\fP is specified, then symlinks are recreated with the same |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3288 |
target on the destination. Note that \fB\-\-archive\fP implies |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3289 |
\fB\-\-links\fP. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3290 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3291 |
-If \fB\-\-copy\-links\fP is specified, then symlinks are \(dq\&collapsed\(dq\& by |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3292 |
+If \fB\-\-copy\-links\fP is specified, then symlinks are \(lqcollapsed\(rq by |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3293 |
copying their referent, rather than the symlink. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3294 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3295 |
-Rsync can also distinguish \(dq\&safe\(dq\& and \(dq\&unsafe\(dq\& symbolic links. An |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3296 |
+Rsync can also distinguish \(lqsafe\(rq and \(lqunsafe\(rq symbolic links. An |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3297 |
example where this might be used is a web site mirror that wishes to |
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3298 |
ensure that the rsync module that is copied does not include symbolic links to |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3299 |
\fB/etc/passwd\fP in the public section of the site. Using |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3300 |
@@ -3364,11 +3369,11 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3301 |
\fB\-\-links\fP for \fB\-\-safe\-links\fP to have any effect.) |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3302 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3303 |
Symbolic links are considered unsafe if they are absolute symlinks |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3304 |
-(start with \fB/\fP), empty, or if they contain enough \(dq\&..\(dq\& |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3305 |
+(start with \fB/\fP), empty, or if they contain enough \(lq..\(rq |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3306 |
components to ascend from the directory being copied. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3307 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3308 |
-Here\(cq\&s a summary of how the symlink options are interpreted. The list is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3309 |
-in order of precedence, so if your combination of options isn\(cq\&t mentioned, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3310 |
+Here's a summary of how the symlink options are interpreted. The list is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3311 |
+in order of precedence, so if your combination of options isn't mentioned, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3312 |
use the first line that is a complete subset of your options: |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3313 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3314 |
.IP "\fB\-\-copy\-links\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3315 |
@@ -3394,8 +3399,8 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3316 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3317 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3318 |
rsync occasionally produces error messages that may seem a little |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3319 |
-cryptic. The one that seems to cause the most confusion is \(dq\&protocol |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3320 |
-version mismatch \-\- is your shell clean?\(dq\&. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3321 |
+cryptic. The one that seems to cause the most confusion is \(lqprotocol |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3322 |
+version mismatch \(em is your shell clean?\(rq. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3323 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3324 |
This message is usually caused by your startup scripts or remote shell |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3325 |
facility producing unwanted garbage on the stream that rsync is using |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3326 |
@@ -3413,7 +3418,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3327 |
data. Look at the contents and try to work out what is producing |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3328 |
it. The most common cause is incorrectly configured shell startup |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3329 |
scripts (such as .cshrc or .profile) that contain output statements |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3330 |
-for non\-interactive logins. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3331 |
+for non-interactive logins. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3332 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3333 |
If you are having trouble debugging filter patterns, then |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3334 |
try specifying the \fB\-vv\fP option. At this level of verbosity rsync will |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3335 |
@@ -3432,13 +3437,13 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3336 |
Errors selecting input/output files, dirs |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3337 |
.IP "\fB4\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3338 |
Requested action not supported: an attempt |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3339 |
-was made to manipulate 64\-bit files on a platform that cannot support |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3340 |
+was made to manipulate 64-bit files on a platform that cannot support |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3341 |
them; or an option was specified that is supported by the client and |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3342 |
not by the server. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3343 |
.IP "\fB5\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3344 |
-Error starting client\-server protocol |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3345 |
+Error starting client-server protocol |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3346 |
.IP "\fB6\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3347 |
-Daemon unable to append to log\-file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3348 |
+Daemon unable to append to log-file |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3349 |
.IP "\fB10\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3350 |
Error in socket I/O |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3351 |
.IP "\fB11\fP" |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3352 |
@@ -3491,13 +3496,13 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3353 |
password allows you to run authenticated rsync connections to an rsync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3354 |
daemon without user intervention. Note that this does not supply a |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3355 |
password to a remote shell transport such as ssh; to learn how to do that, |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3356 |
-consult the remote shell\(cq\&s documentation. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3357 |
+consult the remote shell's documentation. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3358 |
.IP "\fBUSER\fP or \fBLOGNAME\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3359 |
The USER or LOGNAME environment variables |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3360 |
are used to determine the default username sent to an rsync daemon. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3361 |
-If neither is set, the username defaults to \(dq\&nobody\(dq\&. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3362 |
+If neither is set, the username defaults to \(lqnobody\(rq. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3363 |
.IP "\fBHOME\fP" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3364 |
-The HOME environment variable is used to find the user\(cq\&s |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3365 |
+The HOME environment variable is used to find the user's |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3366 |
default .cvsignore file. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3367 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3368 |
.PP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3369 |
@@ -3516,7 +3521,7 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3370 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3371 |
times are transferred as *nix time_t values |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3372 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3373 |
-When transferring to FAT filesystems rsync may re\-sync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3374 |
+When transferring to FAT filesystems rsync may re-sync |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3375 |
unmodified files. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3376 |
See the comments on the \fB\-\-modify\-window\fP option. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3377 |
.PP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3378 |
@@ -3552,27 +3557,27 @@ |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3379 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3380 |
A WEB site is available at |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3381 |
http://rsync.samba.org/. The site |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3382 |
-includes an FAQ\-O\-Matic which may cover questions unanswered by this |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3383 |
+includes an FAQ-O-Matic which may cover questions unanswered by this |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3384 |
manual page. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3385 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3386 |
The primary ftp site for rsync is |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3387 |
ftp://rsync.samba.org/pub/rsync. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3388 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3389 |
We would be delighted to hear from you if you like this program. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3390 |
-Please contact the mailing\-list at [email protected]. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3391 |
+Please contact the mailing-list at [email protected]. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3392 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3393 |
This program uses the excellent zlib compression library written by |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3394 |
-Jean\-loup Gailly and Mark Adler. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3395 |
+Jean-loup Gailly and Mark Adler. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3396 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3397 |
.SH "THANKS" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3398 |
|
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3399 |
.PP |
1351
5c589218fa09
15752593 SUNBT7107925 bump rsync to 3.0.9
klauw <ken.lauw@oracle.com>
parents:
297
diff
changeset
|
3400 |
Special thanks go out to: John Van Essen, Matt McCutchen, Wesley W. Terpstra, |
297
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3401 |
David Dykstra, Jos Backus, Sebastian Krahmer, Martin Pool, and our |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3402 |
-gone\-but\-not\-forgotten compadre, J.W. Schultz. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3403 |
+gone-but-not-forgotten compadre, J.W. Schultz. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3404 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3405 |
Thanks also to Richard Brent, Brendan Mackay, Bill Waite, Stephen Rothwell |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3406 |
-and David Bell. I\(cq\&ve probably missed some people, my apologies if I have. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3407 |
+and David Bell. I've probably missed some people, my apologies if I have. |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3408 |
.PP |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3409 |
.SH "AUTHOR" |
3940bc347ca8
7034286 Problem with utility/rsync (fix patches)
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
296
diff
changeset
|
3410 |