Got rid of kluged value for am_sender, and instead added a new
[rsync/rsync.git] / NEWS
CommitLineData
ac1541f4 1NEWS for rsync 2.6.4 (UNRELEASED)
a8fd4161 2Protocol: 29 (changed)
ac1541f4
WD
3Changes since 2.6.3:
4
fd8571c2
WD
5 OUTPUT CHANGES:
6
7 - When rsync deletes a directory and outputs a verbose message about
8 it, it now appends a trailing slash to the name instead of (only
9 sometimes) outputting a preceding "directory " string.
da1b6eea 10
a897af2c 11 - The --stats output will contain file-list time-statistics if both
e30b1fb8
WD
12 sides are 2.6.4, or if the local side is 2.6.4 and the files are
13 being pushed (since the stats come from the sending side).
8daa9925 14 (Requires protocol 29 for a pull.)
591b908f 15
8c577323
WD
16 - The "%o" (operation) log format now has a third value (besides "send"
17 and "recv"): "del." (with trailing dot to make it 4 chars). This
18 changes the way deletions are logged in the daemon's log file.
fd8571c2 19
ac1541f4
WD
20 BUG FIXES:
21
22 - Restore the list-clearing behavior of "!" in a .cvsignore file (2.6.3
23 was only treating it as a special token in an rsync include/exclude
24 file).
25
8daa9925
WD
26 - The combination of --verbose and --dry-run now mentions the full list
27 of changes that would be output without --dry-run.
e30b1fb8 28
1ed55e3e
WD
29 - Avoid a mkdir warning when removing a directory in the destination
30 that already exists in the --backup-dir.
31
8c577323 32 - An OS that has a binary mode for its files (such as cygwin) needed
ac1541f4 33 setmode(fd, O_BINARY) called on the temp-file we opened with
8c577323 34 mkstemp(). (Fix derived from the cygwin's 2.6.3 rsync package.)
4a888ae6
WD
35
36 - Fixed a potential hang when verbosity is high, the client side is
37 the sender, and the file-list is large.
ac1541f4
WD
38
39 - We now check if the OS doesn't support using mknod() for creating
40 FIFOs and sockets, and compile-in using mkfifo() and socket() when
41 necessary.
42
740bab94
WD
43 - Fixed an off-by-one error in the handling of --max-delete=N.
44
22f5bd5e 45 - One place in the code wasn't checking if fork() failed.
5d54f339 46
8daa9925
WD
47 - The "ignore nonreadable" daemon parameter used to erroneously affect
48 symlinks that pointed to a non-existent file. This has been fixed.
5b2f48da 49
8c577323
WD
50 - If the OS does not have lchown() and a chown() of a symlink will
51 affect the referent of a symlink (as it should), we no longer try
52 to set the user and group of a symlink.
fbe2aba2 53
ec626b3f
WD
54 - The generator now properly runs the hard-link loop and the dir-time
55 rewriting loop after we're sure that the redo phase is complete.
56
da1b6eea
WD
57 - When --backup was specified with --partial-dir=DIR (where DIR is a
58 relative path), the backup code was erroneously trying to backup a
59 file that was put into the partial-dir.
ec626b3f 60
e30b1fb8
WD
61 - One call to flush_write_file() was not being checked for an error.
62
63 - The --no-relative option was not being sent from the client to a
64 server sender.
65
66 - If an rsync daemon specified "dont compress = ..." for a file and the
67 client tried to specify --compress, the libz code was not handling a
68 compression level of 0 properly. This could cause a transfer failure
8c577323 69 if the block-size for a file was large enough (e.g. rsync might have
e30b1fb8
WD
70 exited with an error for large files).
71
8db3106e
WD
72 - Fixed a bug that would sometimes surface when using --compress and
73 sending a file with a block-size larger than 64K (either manually
74 specified, or computed due to the file being really large). Prior
bbbb44ee 75 versions of rsync would sometimes fail to decompress the data
8db3106e
WD
76 properly, and thus the transferred file would fail its verification.
77
a897af2c 78 - If a daemon can't open the specified log file (i.e. syslog is not
8daa9925
WD
79 being used), die without crashing. We also output an error about
80 the failure on stderr (which will only be seen if --no-detach was
a897af2c
WD
81 specified).
82
7b82b5ad 83 - A local transfer no longer duplicates all its include/exclude options
8daa9925
WD
84 (since the forked process already has a copy of the exclude list,
85 there's no need to send them a set of duplicates).
7b82b5ad 86
7b97c388
WD
87 - When --progress is specified, the output of items that the generator
88 is creating (e.g. dirs, symlinks) is now integrated into the progress
8c577323 89 output without overlapping it. (Requires protocol 29.)
7b97c388 90
ac1541f4
WD
91 ENHANCEMENTS:
92
8f1b4f36
WD
93 - Rsync now supports popt's option aliases, which means that you can
94 use /etc/popt and/or ~/.popt to create your own option aliases.
95
da1b6eea 96 - Added the --delete-during (--del) option which will delete files
bbbb44ee 97 from the receiving side incrementally as each directory in the
8daa9925
WD
98 transfer is being processed. This makes it more efficient than the
99 default, before-the-transfer behavior, which is now available as
bbbb44ee 100 --delete-before (and is still the default --delete-WHEN option that
8c577323
WD
101 will be chosen if --delete or --delete-excluded is specified without
102 a --delete-WHEN choice). All the --del* options infer --delete, so
103 an rsync daemon that refuses "delete" will still refuse to allow any
8daa9925 104 file-deleting options.
0752721d
WD
105
106 - All the --delete-WHEN options are now more memory efficient:
107 Previously an entire duplicate set of file-list objects was created
108 on the receiving side for the entire destination hierarchy. The new
bbbb44ee
WD
109 algorithm only creates one directory of objects at a time (for files
110 inside the transfer).
da1b6eea 111
e9973668
WD
112 - Added support for specifying multiple --compare-dest or --link-dest
113 options, but only of a single type. (Promoted from the patches dir
114 and enhanced.)
22f5bd5e 115
c3131af9 116 - Added the --max-size option. (Promoted from the patches dir.)
7a1b73b9 117
18ea5dc0 118 - The daemon-mode options were separated from the normal rsync options
22f5bd5e
WD
119 so that they can't be mixed together. This makes it impossible to
120 start a daemon that had improper default option values that could
8c577323 121 cause problems when a client connects (e.g. a hang or an abort).
18ea5dc0 122
8f1b4f36 123 - The --bwlimit option may now be used in combination with --daemon
e30b1fb8 124 to specify both a default value for the daemon side and a value
8f1b4f36
WD
125 that cannot be exceeded by a user-specified --bwlimit option.
126
c3131af9 127 - Added the "port" parameter to the rsyncd.conf file. (Promoted from
0f7e31f7
WD
128 the patches dir.) Also added "address". A command-line option
129 will take precedence over a config-file option, as expected.
c3131af9 130
ac1541f4
WD
131 - In _exit_cleanup(): when we are exiting with a partially-received
132 file, we now flush any data in the write-cache before closing the
133 partial file.
134
e9973668
WD
135 - The --inplace support was enhanced to work with --compare-dest and
136 --link-dest. (Requires protocol 29.)
a8fd4161 137
9624b864 138 - Added the --dirs (-d) option for an easier way to copy directories
859fdaad
WD
139 without recursion.
140
bbbb44ee 141 - Added the --list-only option, which is mainly a way for the client to
859fdaad 142 put the server into listing mode without needing to resort to any
8daa9925
WD
143 internal option kluges (e.g. the age-old use of "-r --exclude="/*/*"
144 for a non-recursive listing). This option is used automatically
145 (behind the scenes) when a modern rsync speaks to a modern daemon,
146 but may also be specified manually if you want to force the use of
147 the --list-only option over a remote-shell connection.
859fdaad 148
8c577323
WD
149 - Added the --omit-dir-times (-O) option, which will avoid updating
150 the modified time for directories when --times was specified. This
e30b1fb8
WD
151 option will avoid an extra pass through the file-list at the end of
152 the transfer (to tweak all the directory times), which can result in
7b82b5ad
WD
153 an appreciable speedup for a really large transfer. (Promoted from
154 the patches dir.)
90fdd89a 155
9624b864
WD
156 - Added the --filter (-f) option and its helper option, -F. Filter
157 rules are an extension to the existing include/exclude handling
158 that also supports nested filter files as well as per-directory
159 filter files (like .cvsignore, but with full filter-rule parsing).
160 This new option was chosen in order to ensure that all existing
161 include/exclude processing remained 100% compatible with older
3723c048
WD
162 versions. Protocol 29 is needed for full filter-rule support, but
163 backward-compatible rules work with earlier protocol versions.
8daa9925 164 (Promoted from the patches dir and enhanced.)
9624b864 165
da1b6eea
WD
166 - Added the --delay-updates option that puts all updated files into
167 a temporary directory (by default ".~tmp~", but settable via the
168 --partial-dir=DIR option) until the end of the transfer. This
169 makes the updates a little more atomic for a large transfer.
170
e30b1fb8
WD
171 - If rsync is put into the background, any output from --progress is
172 reduced.
173
a897af2c
WD
174 - Documented the "max verbosity" setting for rsyncd.conf. (This
175 setting was added a couple releases ago, but left undocumented.)
176
7b82b5ad 177 - The sender and the generator now double-check the file-list index
8daa9925
WD
178 they are given, and refuse to try to do a file transfer on a
179 non-file index (since that would indicate that something had gone
180 very wrong).
7b82b5ad 181
8daa9925
WD
182 - Added the --itemize-changes (-i) option, which is a way to output a
183 more detailed list of what files changed in any way and how they
184 changed. The effect is the same as specifying a --log-format of
bd5b85db 185 "%i %n%L" (see the rsyncd.conf manpage). Works with --dry-run too.
5b4e1f31 186
3723c048
WD
187 - Added the --fuzzy option, which attempts to find a basis file for a
188 file that is being created from scratch. The current algorithm
189 only looks in the destination directory for the created file, but
190 it does attempt to find a match based on size/mod-time (in case the
191 file was renamed with no other changes) as well as based on a fuzzy
192 name-matching algorithm. This option requires protocol 29 because
193 it needs the new file-sorting order. (Promoted from patches dir
194 and enhanced.)
195
88b93c61
WD
196 - Added the --remove-sent-files option, which lets you move files
197 between systems.
198
7b97c388
WD
199 - When building under windows, the default for --daemon is now to
200 avoid detaching, requiring the new --detach option to force rsync
201 to detach.
202
8daa9925 203 - Improved the option descriptions in the --help text.
da1b6eea 204
8daa9925 205 SUPPORT FILES:
da1b6eea 206
8daa9925
WD
207 - Added atomic-rsync to the support dir: a perl script that will
208 transfer some files using rsync, and then move the updated files into
209 place all at once at the end of the transfer. Only works when
210 pulling, and uses --link-dest and a parallel hierarchy of files to
211 effect its update.
da1b6eea 212
8daa9925
WD
213 - Added mnt-excl to the support dir: a perl script that takes the
214 /proc/mounts file and translates it into a set of excludes that will
215 exclude all mount points (even mapped mounts to the same disk). The
216 excludes are made relative to the specified source dir and properly
217 anchored.
da1b6eea 218
8daa9925
WD
219 - Added savetransfer.c to the support dir: a C program that can make
220 a copy of all the data that flows over the wire. This lets you test
221 for data corruption (by saving the data on both the sending side and
222 the receiving side) or provides a way to help debug a protocol error.
cc17fbfe 223
8daa9925
WD
224 - Added rrsync to the support dir: this is my version of Joe Smith's
225 restricted rsync perl script. This helps to ensure that only certain
226 rsync commands can be run by an ssh invocation.
a897af2c 227
a8fd4161
WD
228 INTERNAL:
229
e30b1fb8 230 - Added better checking of the checksum-header values that come over
a8fd4161
WD
231 the socket.
232
8daa9925 233 - Merged a variety of file-deleting functions into a single function so
e30b1fb8
WD
234 that it is easier to maintain.
235
236 - Improved the type of some variables (particularly blocksize vars) for
237 consistency and proper size.
238
239 - Got rid of the uint64 type (which we didn't need).
a8fd4161 240
a897af2c
WD
241 - Use a slightly more compatible set of core #include directives.
242
243 - Defined int32 in a way that ensures that the build dies if we can't
244 find a variable with at least 32 bits.
245
5b4e1f31
WD
246 - The daemon's "read only" config item now sets an internal read_only
247 variable that makes extra sure that no write/delete calls on the
248 read-only side can succeed.
249
0f7e31f7
WD
250 PROTOCOL DIFFERENCES FOR VERSION 29:
251
bd5b85db
WD
252 - A 16-bit flag-word is transmitted after every file-list index. This
253 indicates what is changing between the sender and the receiver. The
254 generator now transmits an index and a flag-word to indicate when
33f839b3
WD
255 dirs and symlinks have changed (instead of producing a message),
256 which makes the outputting of the information more consistent and
257 less prone to screen corruption (because either the receiver or the
258 sender is now outputting all the file-change info).
bd5b85db 259
8c577323
WD
260 - If --inplace is specified, the generator flags any transfer that is
261 using an alternate basis file so that the sender can use the entire
262 file in the rsync algorithm (unlike a normal --inplace update).
0f7e31f7
WD
263
264 - The sending of exclude names is done using filter-rule syntax. This
265 means that all names have a prefixed rule indicator, even excludes
266 (which used to be sent as a bare pattern, when possible). The -C
267 option will include the per-dir .cvsignore merge file in the list of
268 filter rules so it is positioned correctly (unlike in some older
269 transfer scenarios).
270
8daa9925
WD
271 - Rsync sorts the filename list in a different way: it sorts the subdir
272 names after the non-subdir names for each dir's contents, and it
273 always puts a dir's contents immediately after the dir's name in the
274 list. (Previously an item named "foo.txt" would sort in between
86e97e17 275 directory "foo/" and "foo/bar".)
0f7e31f7
WD
276
277 - When talking to a protocol 29 rsync daemon, a list-only request
8c577323
WD
278 is able to note this before the options are sent over the wire and
279 the new --list-only option is included in the options.
0f7e31f7
WD
280
281 - When the --stats bytes are sent over the wire (or stored in a batch),
282 they now include two elapsed-time values: one for how long it took to
283 build the file-list, and one for how long it took to send it over the
284 wire (each expressed in thousandths of a second).
285
8c577323
WD
286 - When --delete-excluded is specified with some filter excludes, a
287 client sender will now initiate a send of the filter rules to the
288 receiver (older protocols used to omit the sending of excludes in
289 this situation since there were no receiver-specific rules that
290 survived --delete-excluded back then). Note that, as with all the
291 filter-list sending, only items that are significant to the other
292 side will actually be sent over the wire, so the filter-rule list
293 is often empty in this scenario.
28c54e81 294
0f7e31f7
WD
295 - A protocol-29 batch file includes a bit for the setting of the --dirs
296 option. Also, the shell script created by --write-batch will use the
297 --filter option instead of --exclude-from to capture any filter rules.
298
ac1541f4
WD
299 BUILD CHANGES:
300
87ba7282 301 - Handle an operating system that use mkdev() in place of makedev().
e30b1fb8
WD
302
303 - Improved configure to better handle cross-compiling.