Mention latest changes.
[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 itemized output now uses 'S' for a special file instead of
8       clumping them together with the 'D' for devices.  The number of
9       characters is also different (to remove an unused field).
10
11   BUG FIXES:
12
13     - Fixed a really old bug that caused --checksum (-c) to checksum all the
14       files encountered during the delete scan (ouch).
15
16     - Fixed a potential hang in a remote generator:  when the receiver gets a
17       read-error on the socket, it now signals the generator about this so that
18       the generator does not try to send any of the terminating error messages
19       to the client (avoiding a potential hang in some setups).
20
21     - Made hard-links work with symlinks and devices again.
22
23     - If the sender gets an early EOF reading a source file, we propagate this
24       error to the receiver so that it can discard the file and try requesting
25       it again (which is the existing behavior for other kinds of read errors).
26
27     - If a device-file/special-file changes permissions, rsync now updates the
28       permissions without recreating the file.
29
30     - If the user specifies a remote-host for both the source and destination,
31       we now output a syntax error rather than trying to open the destination
32       hostspec as a filename.
33
34     - When --inplace creates a new destination file, rsync now creates it with
35       permissions 0600 instead of 0000 -- this makes restarting possible when
36       the transfer gets interrupted in the middle of sending a new file.
37
38     - Reject the combination of --inplace and --sparse since the sparse-output
39       algorithm doesn't work when overwriting existing data.
40
41     - Fixed the directory name in the error that is output when pop_dir()
42       fails.
43
44     - Really fixed the parsing of a "!" entry in .cvsignore files this time.
45
46     - If the generator gets a stat() error on a file, output it (this used to
47       require at least -vv for the error to be seen).
48
49     - If waitpid() fails or the child rsync didn't exit cleanly, we now handle
50       the exit status properly and generate a better error.
51
52     - Fixed some glitches in the double-verbose output when using --copy-dest,
53       --link-dest, or --compare-dest.
54
55     - Fixed the matching of the dont-compress items (e.g. *.gz) against files
56       that have a path component containing a slash.
57
58     - If code reading a filter/exclude file an EINTR error, rsync now clears
59       the error flag on the file handle so it can keep on reading.
60
61     - If --relative is active, the sending side cleans up trailing "/" or "/."
62       suffixes to avoid triggering a bug in older rsync versions.  Also, we now
63       reject a ".." dir if it would be sent as a relative dir.
64
65     - If a non-directory is in the way of a directory and rsync is run with
66       --dry-run and --delete, rsync no longer complains about not being able
67       to opendir() the not-yet present directory.
68
69     - Got rid of the need for --force to be used in some circumstances with
70       --delete-after (making it consistent with --delete-before/-during).
71
72   ENHANCEMENTS:
73
74     - Added the --specials option to tell rsync to copy special files (and does
75       not require root).  The --devices option now affects just character and
76       block devices (which now matches the documentation).  The -D option still
77       requests both --devices and --specials, and -a still implies -D.
78
79     - Added the --append option that makes rsync append data onto files that
80       are longer on the source than the destination (this includes new files).
81
82     - Added the --min-size=SIZE option to exclude small files from the
83       transfer.
84
85     - Added the --compress-level option to allow you to set how aggressive
86       rsync's compression should be (this option implies --compress).
87
88     - Enhanced the parsing of the SIZE value for --min-size and --max-size to
89       allow easy entry of multiples of 1000 (instead of just multiples of 1024)
90       and off-by-one values too (e.g. --max-size=8mb-1).
91
92     - The options --human-readable (-h) and --si change the output of the
93       --stats and the end-of-run summary to be easier to read.
94
95     - If lutimes() and/or lchmod() are around, use them to allow the
96       preservation of attributes on symlinks.
97
98     - The --link-dest option now affects symlinks and devices (when possible).
99
100     - Improved the output of hard-linked and copied files when using
101       --link-dest, --copy-dest, or --compare-dest.
102
103     - Added two config items to the rsyncd.conf parsing:  "pre-xfer exec" and
104       "post-xfer exec".  These allow a command to be specified on a per-module
105       basis that will be run before and/or after a daemon-mode transfer.  (See
106       the manpage for a list of the environment variables that are set with
107       information about the transfer.)
108
109     - When using the --relative option, you can now insert a dot dir in
110       the source path to indicate where the replication of the source dirs
111       should start.  For example, if you specify a source path of
112       rsync://host/module/foo/bar/./baz/dir with -R, rsync will now only
113       replicate the "baz/dir" part of the source path (note: a trailing
114       dot dir is unaffected unless it also has a trailing slash).
115
116     - Added some new --no-FOO options that make it easier to override unwanted
117       implied or default options.  For example, "-a --no-o" (aka "--archive
118       --no-owner") can be used to turn off the preservation of file ownership
119       that is implied by -a.
120
121     - Added the --chmod=MODE option that allows the destination permissions to
122       be changed from the source permissions.  E.g. --chmod=g+w,o-rwx
123
124     - Added the "incoming chmod" and "outgoing chmod" daemon options that allow
125       a module to specify what permissions changes should be applied to all
126       files copied to and from the daemon.
127
128     - Allow the --temp-dir option to be specified when starting a daemon, which
129       sets the default temporary directory for incoming files.
130
131     - If --delete is combined with --dirs without --recursive, rsync will now
132       delete in any directory whose content is being synchronized.
133
134     - If --backup is combined with --delete without --backup-dir (and without
135       --delete-excluded), we add a "protect" filter-rule to ensure that files
136       with the backup suffix are not deleted.
137
138     - The file-count stats that are output by --progress were improved to
139       better indicate what the numbers mean.  For instance, the output:
140       "(xfer#5, to-check=8383/9999)" indicates that this was the fifth file
141       to be transferred, and we still need to check 8383 more files out of
142       a total of 9999.
143
144     - The include/exclude code now allows a dir/*** directive (with 3 trailing
145       stars) to match both the dir itself as well as all the content below the
146       dir (dir/** would not match the dir).
147
148     - Added the --prune-empty-dirs (-m) option that makes the receiving rsync
149       discard empty chains of directories from the file-list.  This makes it
150       easier to selectively copy files from a source hierarchy and end up with
151       just the directories needed to hold the resulting files.
152
153     - If the --itemize-changes (-i) option is repeated, rsync now includes
154       unchanged files in the itemized output (similar to -vv, but without all
155       the other verbose messages that can get in the way).  Of course, the
156       client must be version 2.6.7 for this to work, but the remote rsync only
157       needs to be 2.6.7 if you're pushing files.
158
159     - Added the --super option to make the receiver always attempt super- user
160       activities.  This is useful for systems that allow things such as devices
161       to be created or ownership to be set without being UID 0, and is also
162       useful for someone who wants to ensure that errors will be output if the
163       receiving rsync isn't being run as root.
164
165     - Added the --sockopts option for those few who want to customize the TCP
166       options used to contact a daemon rsync.
167
168     - Added a way for the --temp-dir option to be combined with a partial-dir
169       setting that lets rsync avoid non-atomic updates (for those times when
170       --temp-dir is not being used because space is tight).
171
172     - A new support script, files-to-excludes, will transform a list of files
173       into a set of include/exclude directives that will copy those files.
174
175     - A new option, --executability (-E) can be used to preserve just the
176       execute bit on files, for those times when using the --perms option is
177       not desired.
178
179     - The daemon now logs each module-list request it receives.
180
181     - New log-format options: %M (modtime), %U (uid), %G (gid), and %B
182       (permission bits, e.g. "rwxr-xrwt").
183
184     - Some minor documentation improvements.
185
186     - Updated some diffs in the patches dir.
187
188   INTERNAL:
189
190     - We now use sigaction() and sigprocmask() if possible, and fall back on
191       signal() if not.  Using sigprocmask() ensures that rsync enables all the
192       signals that it needs, just in case it was started in a masked state.
193
194     - Some buffer sizes were expanded a bit, particularly on systems where
195       MAXPATHLEN is overly small (e.g. cygwin).
196
197     - If io_printf() tries to format more data than fits in the buffer, exit
198       with an error instead of transmitting a truncated buffer.
199
200     - If a va_copy macro is defined, lib/snprintf.c will use it when defining
201       the VA_COPY macro.
202
203     - Reduced the amount of stack memory needed for each level of directory
204       recursion by nearly MAXPATHLEN bytes.
205
206     - The wildmatch function was extended to allow an array of strings to be
207       supplied as the string to match.  This allows the exclude code to do less
208       string copying.
209
210     - Got rid of the safe_fname() function (and all the myriad calls) and
211       replaced it with a new function in the log.c code that filters all the
212       output going to the terminal.
213
214     - Unified the f_name() and the f_name_to() functions.
215
216   DEVELOPER RELATED:
217
218     - Several diffs in the patches dir now use the proper --enable-FOO
219       configure option instead of --with-FOO to turn on the inclusion of
220       the newly patched feature.
221
222     - The testsuite now sets HOME so that it won't be affecting by a file
223       such as ~/.popt.