Mention solo-dir fix for a dir without S_IWUSR.
[rsync/rsync.git] / NEWS
1 NEWS for rsync 2.6.7 (UNRELEASED)
2 Protocol: 29 (unchanged)
3 Changes since 2.6.6:
4
5   OUTPUT CHANGES:
6
7     - The letter 'D' in the itemized output was being used for both devices
8       (character or block) as well as other special files (such as fifos and
9       named sockets).  This has changed to separate non-device special files
10       under the 'S' designation (e.g. "cS+++++++ path/fifo").  See also the
11       "--specials" option, below.
12
13     - The way rsync escapes unreadable characters has changed.  First, rsync
14       now has support for recognizing valid multibyte character sequences in
15       your current locale, allowing it to escape fewer characters than before
16       for a locale such as UTF-8.  Second, it now uses an escape idiom of
17       "\#123", which is the literal string "\#" followed by exactly 3 octal
18       digits.  Rsync no longer doubles a backslash character in a filename
19       (e.g. it used to output "foo\\bar" when copying "foo\bar") -- now it only
20       escapes a backslash that is followed by a hash-sign and 3 digits (0-9)
21       (e.g. it will output "foo\#134#789" when copying "foo\#789").  See also
22       the --8-bit-output (-8) option, mentioned below.
23
24       Script writers: the local rsync is the one that outputs escaped names,
25       so if you need to support unescaping of filenames for older rsyncs, I'd
26       suggest that you parse the output of "rsync --version" and only use the
27       old unescaping rules for 2.6.5 and 2.6.6.
28
29   BUG FIXES:
30
31     - Fixed a really old bug that caused --checksum (-c) to checksum all the
32       files encountered during the delete scan (ouch).
33
34     - Fixed a potential hang in a remote generator:  when the receiver gets a
35       read-error on the socket, it now signals the generator about this so that
36       the generator does not try to send any of the terminating error messages
37       to the client (avoiding a potential hang in some setups).
38
39     - Made hard-links work with symlinks and devices again.
40
41     - If the sender gets an early EOF reading a source file, we propagate this
42       error to the receiver so that it can discard the file and try requesting
43       it again (which is the existing behavior for other kinds of read errors).
44
45     - If a device-file/special-file changes permissions, rsync now updates the
46       permissions without recreating the file.
47
48     - If the user specifies a remote-host for both the source and destination,
49       we now output a syntax error rather than trying to open the destination
50       hostspec as a filename.
51
52     - When --inplace creates a new destination file, rsync now creates it with
53       permissions 0600 instead of 0000 -- this makes restarting possible when
54       the transfer gets interrupted in the middle of sending a new file.
55
56     - Reject the combination of --inplace and --sparse since the sparse-output
57       algorithm doesn't work when overwriting existing data.
58
59     - Fixed the directory name in the error that is output when pop_dir()
60       fails.
61
62     - Really fixed the parsing of a "!" entry in .cvsignore files this time.
63
64     - If the generator gets a stat() error on a file, output it (this used to
65       require at least -vv for the error to be seen).
66
67     - If waitpid() fails or the child rsync didn't exit cleanly, we now handle
68       the exit status properly and generate a better error.
69
70     - Fixed some glitches in the double-verbose output when using --copy-dest,
71       --link-dest, or --compare-dest.  Also improved how the verbose output
72       handles hard-links (within the transfer) that had an up-to-date alternate
73       "dest" file, and copied files (via --copy-dest).
74
75     - Fixed the matching of the dont-compress items (e.g. *.gz) against files
76       that have a path component containing a slash.
77
78     - If code reading a filter/exclude file an EINTR error, rsync now clears
79       the error flag on the file handle so it can keep on reading.
80
81     - If --relative is active, the sending side cleans up trailing "/" or "/."
82       suffixes to avoid triggering a bug in older rsync versions.  Also, we now
83       reject a ".." dir if it would be sent as a relative dir.
84
85     - If a non-directory is in the way of a directory and rsync is run with
86       --dry-run and --delete, rsync no longer complains about not being able
87       to opendir() the not-yet present directory.
88
89     - When --list-only is used and a non-existent local destination dir was
90       also specified as a destination, rsync no longer generates a warning
91       about being unable to create the missing directory.
92
93     - Fixed some problems with --relative --no-implied-dirs when the
94       destination directory did not yet exist:  we can now create a symlink or
95       device when it is the first thing in the missing dir, and --fuzzy no
96       longer complains about being unable to open the missing dir.
97
98     - Fixed a bug where the --copy-links option would not affect implied
99       directories without --copy-unsafe-links (see --relative).
100
101     - Got rid of the need for --force to be used in some circumstances with
102       --delete-after (making it consistent with --delete-before/-during).
103
104     - Rsync now ignores the SIGXFSZ signal, just in case your OS sends this
105       when a file is too large (rsync handles the write error).
106
107     - Fixed a bug in the Proxy-Authorization header's base64-encoded value: it
108       was not properly padded with trailing '=' chars.  This only affects a
109       user that need to use a password-authenticated proxy for an outgoing
110       daemon-rsync connection.
111
112     - If we're transferring an empty directory to a new name, rsync no longer
113       forces S_IWUSR if it wasn't already set, nor does it accidentally leave
114       it set.
115
116     - Fixed a bug in the debug output (-vvvvv) that could mention the wrong
117       checksum for the current file offset.
118
119     - Rsync no longer allows a single directory to be copied over a non-
120       directory destination arg.
121
122   ENHANCEMENTS:
123
124     - Added the --append option that makes rsync append data onto files that
125       are longer on the source than the destination (this includes new files).
126
127     - Added the --min-size=SIZE option to exclude small files from the
128       transfer.
129
130     - Added the --compress-level option to allow you to set how aggressive
131       rsync's compression should be (this option implies --compress).
132
133     - Enhanced the parsing of the SIZE value for --min-size and --max-size to
134       allow easy entry of multiples of 1000 (instead of just multiples of 1024)
135       and off-by-one values too (e.g. --max-size=8mb-1).
136
137     - Added the --8-bit-output (-8) option, which tells rsync to avoid escaping
138       high-bit characters that it thinks are unreadable in the current locale.
139
140     - The new option --human-readable (-h) changes the output of --progress,
141       --stats, and the end-of-run summary to be easier to read.  If repeated,
142       the units become powers of 1024 instead of powers of 1000.  (The old
143       meaning of -h, as a shorthand for --help, still works as long as you
144       just use it on its own, as in "rsync -h".)
145
146     - If lutimes() and/or lchmod() are around, use them to allow the
147       preservation of attributes on symlinks.
148
149     - The --link-dest option now affects symlinks and devices (when possible).
150
151     - Added two config items to the rsyncd.conf parsing:  "pre-xfer exec" and
152       "post-xfer exec".  These allow a command to be specified on a per-module
153       basis that will be run before and/or after a daemon-mode transfer.  (See
154       the man page for a list of the environment variables that are set with
155       information about the transfer.)
156
157     - When using the --relative option, you can now insert a dot dir in
158       the source path to indicate where the replication of the source dirs
159       should start.  For example, if you specify a source path of
160       rsync://host/module/foo/bar/./baz/dir with -R, rsync will now only
161       replicate the "baz/dir" part of the source path (note: a trailing
162       dot dir is unaffected unless it also has a trailing slash).
163
164     - Added some new --no-FOO options that make it easier to override unwanted
165       implied or default options.  For example, "-a --no-o" (aka "--archive
166       --no-owner") can be used to turn off the preservation of file ownership
167       that is implied by -a.
168
169     - Added the --chmod=MODE option that allows the destination permissions to
170       be changed from the source permissions.  E.g. --chmod=g+w,o-rwx
171
172     - Added the "incoming chmod" and "outgoing chmod" daemon options that allow
173       a module to specify what permissions changes should be applied to all
174       files copied to and from the daemon.
175
176     - Allow the --temp-dir option to be specified when starting a daemon, which
177       sets the default temporary directory for incoming files.
178
179     - If --delete is combined with --dirs without --recursive, rsync will now
180       delete in any directory whose content is being synchronized.
181
182     - If --backup is combined with --delete without --backup-dir (and without
183       --delete-excluded), we add a "protect" filter-rule to ensure that files
184       with the backup suffix are not deleted.
185
186     - The file-count stats that are output by --progress were improved to
187       better indicate what the numbers mean.  For instance, the output:
188       "(xfer#5, to-check=8383/9999)" indicates that this was the fifth file
189       to be transferred, and we still need to check 8383 more files out of
190       a total of 9999.
191
192     - The include/exclude code now allows a dir/*** directive (with 3 trailing
193       stars) to match both the dir itself as well as all the content below the
194       dir (dir/** would not match the dir).
195
196     - Added the --prune-empty-dirs (-m) option that makes the receiving rsync
197       discard empty chains of directories from the file-list.  This makes it
198       easier to selectively copy files from a source hierarchy and end up with
199       just the directories needed to hold the resulting files.
200
201     - If the --itemize-changes (-i) option is repeated, rsync now includes
202       unchanged files in the itemized output (similar to -vv, but without all
203       the other verbose messages that can get in the way).  Of course, the
204       client must be version 2.6.7 for this to work, but the remote rsync only
205       needs to be 2.6.7 if you're pushing files.
206
207     - Added the --specials option to tell rsync to copy non-device special
208       files (which rsync now attempts even as a normal user).  The --devices
209       option now requests the copying of just devices (character and block).
210       The -D option still requests both (e.g. --devices and --specials), -a
211       still implies -D, and non-root users still get a silent downgrade that
212       omits device copying.
213
214     - Added the --super option to make the receiver always attempt super-user
215       activities.  This is useful for systems that allow things such as devices
216       to be created or ownership to be set without being UID 0, and is also
217       useful for someone who wants to ensure that errors will be output if the
218       receiving rsync isn't being run as root.
219
220     - Added the --sockopts option for those few who want to customize the TCP
221       options used to contact a daemon rsync.
222
223     - Added a way for the --temp-dir option to be combined with a partial-dir
224       setting that lets rsync avoid non-atomic updates (for those times when
225       --temp-dir is not being used because space is tight).
226
227     - A new support script, files-to-excludes, will transform a list of files
228       into a set of include/exclude directives that will copy those files.
229
230     - A new option, --executability (-E) can be used to preserve just the
231       execute bit on files, for those times when using the --perms option is
232       not desired.
233
234     - The daemon now logs each connection and also each module-list request
235       that it receives.
236
237     - New log-format options: %M (modtime), %U (uid), %G (gid), and %B
238       (permission bits, e.g. "rwxr-xrwt").
239
240     - The --dry-run option no longer forces the enabling of --verbose.
241
242     - The --remove-sent-files option now does a better job of incrementally
243       removing the sent files on the sending side (older versions tended to
244       clump up all the removals at the end).
245
246     - A daemon now supersedes its minimal SIGCHLD handler with the standard
247       PID-remembering version after forking.  This ensures that the generator
248       can get the child-exit status from the receiver.
249
250     - Use of the --bwlimit option no longer interferes with the remote rsync
251       sending error messages about invalid/refused options.
252
253     - Rsync no longer returns a usage error when used with one local source arg
254       and no destination: this now implies the --list-only option, just like
255       the comparable situation with a remote source arg.
256
257     - Added the --copy-dirlinks option, a more limited version of --copy-links.
258
259     - Various documentation improvements, including: a better synopsis, some
260       improved examples, a better discussion of the presence and absence of
261       --perms (including how it interacts with the new --executability and
262       --chmod options), an extended discussion of --temp-dir, an improved
263       discussion of --partial-dir, a better description of rsync's pattern
264       matching characters, an improved --no-implied-dirs section, and the
265       documenting of what the --stats option outputs.
266
267     - Various new and updated diffs in the patches dir, including: acls.diff,
268       xattrs.diff, atimes.diff, detect-renamed.diff, and slp.diff.
269
270   INTERNAL:
271
272     - We now use sigaction() and sigprocmask() if possible, and fall back on
273       signal() if not.  Using sigprocmask() ensures that rsync enables all the
274       signals that it needs, just in case it was started in a masked state.
275
276     - Some buffer sizes were expanded a bit, particularly on systems where
277       MAXPATHLEN is overly small (e.g. cygwin).
278
279     - If io_printf() tries to format more data than fits in the buffer, exit
280       with an error instead of transmitting a truncated buffer.
281
282     - If a va_copy macro is defined, lib/snprintf.c will use it when defining
283       the VA_COPY macro.
284
285     - Reduced the amount of stack memory needed for each level of directory
286       recursion by nearly MAXPATHLEN bytes.
287
288     - The wildmatch function was extended to allow an array of strings to be
289       supplied as the string to match.  This allows the exclude code to do less
290       string copying.
291
292     - Got rid of the safe_fname() function (and all the myriad calls) and
293       replaced it with a new function in the log.c code that filters all the
294       output going to the terminal.
295
296     - Unified the f_name() and the f_name_to() functions.
297
298     - Improved the hash-table code the sender uses to handle checksums to make
299       it use slightly less memory and run just a little faster.
300
301   DEVELOPER RELATED:
302
303     - The diffs in the patches dir now require "patch -p1 <DIFF" instead of
304       the previous -p0.  Also, the version included in the release tar now
305       affect generated files (e.g. configure, rsync.1, proto.h, etc.), so
306       it is no longer necessary to run autoconf and/or yodl unless you're
307       applying a patch that was checked out from CVS.
308
309     - Several diffs in the patches dir now use the proper --enable-FOO
310       configure option instead of --with-FOO to turn on the inclusion of
311       the newly patched feature.
312
313     - There is a new script, "prepare-source" than can be used to update the
314       various generated files (proto.h, configure, etc.) even before configure
315       has created the Makefile (this is mainly useful when patching the source
316       with a patch that doesn't affect generated files).
317
318     - The testsuite now sets HOME so that it won't be affected by a file such
319       as ~/.popt.