Commit | Line | Data |
---|---|---|
f90f7149 | 1 | NEWS for rsync 2.6.7 (UNRELEASED) |
3ae6c187 | 2 | Protocol: 29 (unchanged) |
f90f7149 | 3 | Changes since 2.6.6: |
9db17434 | 4 | |
d671ccfc WD |
5 | OUTPUT CHANGES: |
6 | ||
1e2b96bb WD |
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. | |
d671ccfc | 12 | |
36f59b58 WD |
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) | |
45b79c89 | 21 | (e.g. it will output "foo\#134#789" when copying "foo\#789"). See also |
a6a27602 | 22 | the --8-bit-output (-8) option, mentioned below. |
36f59b58 WD |
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 | ||
ac1541f4 WD |
29 | BUG FIXES: |
30 | ||
23740239 | 31 | - Fixed a really old bug that caused --checksum (-c) to checksum all the |
da2d13e3 | 32 | files encountered during the delete scan (ouch). |
23740239 | 33 | |
2fb450bd WD |
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 | ||
56961bec WD |
39 | - Made hard-links work with symlinks and devices again. |
40 | ||
5481e42c WD |
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 | ||
fbe57fdc WD |
45 | - If a device-file/special-file changes permissions, rsync now updates the |
46 | permissions without recreating the file. | |
4fdb03a6 | 47 | |
9425918d WD |
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 | ||
7ea7bebf WD |
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 | ||
ec69bdbd WD |
56 | - Reject the combination of --inplace and --sparse since the sparse-output |
57 | algorithm doesn't work when overwriting existing data. | |
58 | ||
fbe57fdc WD |
59 | - Fixed the directory name in the error that is output when pop_dir() |
60 | fails. | |
61 | ||
02efda9f WD |
62 | - Really fixed the parsing of a "!" entry in .cvsignore files this time. |
63 | ||
ce0da32a WD |
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. | |
0417c34e | 69 | |
8a1f3153 | 70 | - Fixed some glitches in the double-verbose output when using --copy-dest, |
567f1566 WD |
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). | |
8a1f3153 | 74 | |
515afe7c WD |
75 | - Fixed the matching of the dont-compress items (e.g. *.gz) against files |
76 | that have a path component containing a slash. | |
77 | ||
d37bc73a WD |
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 | ||
87001ac6 WD |
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. | |
d37bc73a | 84 | |
2a59d2cc | 85 | - If a non-directory is in the way of a directory and rsync is run with |
5481e42c WD |
86 | --dry-run and --delete, rsync no longer complains about not being able |
87 | to opendir() the not-yet present directory. | |
2a59d2cc | 88 | |
63344ad4 WD |
89 | - Got rid of the need for --force to be used in some circumstances with |
90 | --delete-after (making it consistent with --delete-before/-during). | |
91 | ||
71a84cba WD |
92 | - Rsync now ignores the SIGXFSZ signal, just in case your OS sends this |
93 | when a file is too large (rsync handles the write error). | |
94 | ||
ac1541f4 WD |
95 | ENHANCEMENTS: |
96 | ||
5481e42c WD |
97 | - Added the --append option that makes rsync append data onto files that |
98 | are longer on the source than the destination (this includes new files). | |
870dddc5 | 99 | |
bad01106 WD |
100 | - Added the --min-size=SIZE option to exclude small files from the |
101 | transfer. | |
102 | ||
103 | - Added the --compress-level option to allow you to set how aggressive | |
da2d13e3 | 104 | rsync's compression should be (this option implies --compress). |
d697314b | 105 | |
5481e42c WD |
106 | - Enhanced the parsing of the SIZE value for --min-size and --max-size to |
107 | allow easy entry of multiples of 1000 (instead of just multiples of 1024) | |
108 | and off-by-one values too (e.g. --max-size=8mb-1). | |
889439c2 | 109 | |
a6a27602 WD |
110 | - Added the --8-bit-output (-8) option, which tells rsync to avoid escaping |
111 | high-bit characters that it thinks are unreadable in the current locale. | |
45b79c89 | 112 | |
f65e6a12 WD |
113 | - The new option --human-readable (-h) changes the output of --progress, |
114 | --stats, and the end-of-run summary to be easier to read. If repeated, | |
1e2b96bb WD |
115 | the units become powers of 1024 instead of powers of 1000. (The old |
116 | meaning of -h, as a shorthand for --help, still works as long as you | |
117 | just use it on its own, as in "rsync -h".) | |
d697314b | 118 | |
f90f7149 WD |
119 | - If lutimes() and/or lchmod() are around, use them to allow the |
120 | preservation of attributes on symlinks. | |
7d7a34ae | 121 | |
5481e42c | 122 | - The --link-dest option now affects symlinks and devices (when possible). |
8a1f3153 | 123 | |
5481e42c WD |
124 | - Added two config items to the rsyncd.conf parsing: "pre-xfer exec" and |
125 | "post-xfer exec". These allow a command to be specified on a per-module | |
126 | basis that will be run before and/or after a daemon-mode transfer. (See | |
567f1566 | 127 | the man page for a list of the environment variables that are set with |
5481e42c | 128 | information about the transfer.) |
5b9cc695 | 129 | |
56961bec WD |
130 | - When using the --relative option, you can now insert a dot dir in |
131 | the source path to indicate where the replication of the source dirs | |
132 | should start. For example, if you specify a source path of | |
da2d13e3 | 133 | rsync://host/module/foo/bar/./baz/dir with -R, rsync will now only |
56961bec WD |
134 | replicate the "baz/dir" part of the source path (note: a trailing |
135 | dot dir is unaffected unless it also has a trailing slash). | |
136 | ||
5481e42c WD |
137 | - Added some new --no-FOO options that make it easier to override unwanted |
138 | implied or default options. For example, "-a --no-o" (aka "--archive | |
139 | --no-owner") can be used to turn off the preservation of file ownership | |
140 | that is implied by -a. | |
a912a980 | 141 | |
5481e42c WD |
142 | - Added the --chmod=MODE option that allows the destination permissions to |
143 | be changed from the source permissions. E.g. --chmod=g+w,o-rwx | |
ef3bb69a | 144 | |
50fd4832 WD |
145 | - Added the "incoming chmod" and "outgoing chmod" daemon options that allow |
146 | a module to specify what permissions changes should be applied to all | |
147 | files copied to and from the daemon. | |
63344ad4 | 148 | |
5481e42c WD |
149 | - Allow the --temp-dir option to be specified when starting a daemon, which |
150 | sets the default temporary directory for incoming files. | |
ec69bdbd | 151 | |
5481e42c WD |
152 | - If --delete is combined with --dirs without --recursive, rsync will now |
153 | delete in any directory whose content is being synchronized. | |
ce0da32a | 154 | |
5481e42c WD |
155 | - If --backup is combined with --delete without --backup-dir (and without |
156 | --delete-excluded), we add a "protect" filter-rule to ensure that files | |
157 | with the backup suffix are not deleted. | |
2067ec73 | 158 | |
3b153409 WD |
159 | - The file-count stats that are output by --progress were improved to |
160 | better indicate what the numbers mean. For instance, the output: | |
0ee32c62 WD |
161 | "(xfer#5, to-check=8383/9999)" indicates that this was the fifth file |
162 | to be transferred, and we still need to check 8383 more files out of | |
163 | a total of 9999. | |
3b153409 | 164 | |
5481e42c WD |
165 | - The include/exclude code now allows a dir/*** directive (with 3 trailing |
166 | stars) to match both the dir itself as well as all the content below the | |
167 | dir (dir/** would not match the dir). | |
d37bc73a | 168 | |
5481e42c WD |
169 | - Added the --prune-empty-dirs (-m) option that makes the receiving rsync |
170 | discard empty chains of directories from the file-list. This makes it | |
171 | easier to selectively copy files from a source hierarchy and end up with | |
172 | just the directories needed to hold the resulting files. | |
a324d49b | 173 | |
458aeea4 | 174 | - If the --itemize-changes (-i) option is repeated, rsync now includes |
5481e42c WD |
175 | unchanged files in the itemized output (similar to -vv, but without all |
176 | the other verbose messages that can get in the way). Of course, the | |
177 | client must be version 2.6.7 for this to work, but the remote rsync only | |
178 | needs to be 2.6.7 if you're pushing files. | |
458aeea4 | 179 | |
1e2b96bb WD |
180 | - Added the --specials option to tell rsync to copy non-device special |
181 | files (which rsync now attempts even as a normal user). The --devices | |
182 | option now requests the copying of just devices (character and block). | |
183 | The -D option still requests both (e.g. --devices and --specials), -a | |
184 | still implies -D, and non-root users still get a silent downgrade that | |
185 | omits device copying. | |
186 | ||
187 | - Added the --super option to make the receiver always attempt super-user | |
5481e42c WD |
188 | activities. This is useful for systems that allow things such as devices |
189 | to be created or ownership to be set without being UID 0, and is also | |
190 | useful for someone who wants to ensure that errors will be output if the | |
191 | receiving rsync isn't being run as root. | |
f5b14759 | 192 | |
5481e42c WD |
193 | - Added the --sockopts option for those few who want to customize the TCP |
194 | options used to contact a daemon rsync. | |
f7916cbf | 195 | |
63344ad4 WD |
196 | - Added a way for the --temp-dir option to be combined with a partial-dir |
197 | setting that lets rsync avoid non-atomic updates (for those times when | |
198 | --temp-dir is not being used because space is tight). | |
199 | ||
2959fe74 WD |
200 | - A new support script, files-to-excludes, will transform a list of files |
201 | into a set of include/exclude directives that will copy those files. | |
202 | ||
203 | - A new option, --executability (-E) can be used to preserve just the | |
204 | execute bit on files, for those times when using the --perms option is | |
205 | not desired. | |
206 | ||
49f4d850 WD |
207 | - The daemon now logs each module-list request it receives. |
208 | ||
209 | - New log-format options: %M (modtime), %U (uid), %G (gid), and %B | |
210 | (permission bits, e.g. "rwxr-xrwt"). | |
211 | ||
20a02697 WD |
212 | - The --dry-run option no longer forces the enabling of --verbose. |
213 | ||
42003f6a WD |
214 | - The --remove-sent-files option now does a better job of incrementally |
215 | removing the sent files on the sending side (older versions tended to | |
216 | clump up all the removals at the end). | |
217 | ||
81f654e3 WD |
218 | - A daemon now supersedes its minimal SIGCHLD handler with the standard |
219 | PID-remembering version after forking to handle the request. This | |
220 | ensures that the generator can get the child-exit status from the | |
221 | receiver. | |
222 | ||
223 | - Use of the --bwlimit option no longer interferes with the remote rsync | |
224 | sending error messages about invalid/refused options. | |
225 | ||
567f1566 WD |
226 | - Various documentation improvements, including: a better synopsis, some |
227 | improved examples, a better discussion of the presence and absence of | |
228 | --perms (including how it interacts with the new --executability and | |
229 | --chmod options), an extended discussion of --temp-dir, an improved | |
230 | discussion of --partial-dir, a better description of rsync's pattern | |
231 | matching characters, and the documenting of what the various items in | |
232 | the --stats output mean. | |
e3f83953 | 233 | |
567f1566 WD |
234 | - Various new and updated diffs in the patches dir, including: acls.diff, |
235 | xattrs.diff, atimes.diff, detect-renamed.diff, and slp.diff. | |
0417c34e | 236 | |
5b9cc695 WD |
237 | INTERNAL: |
238 | ||
5cf48960 WD |
239 | - We now use sigaction() and sigprocmask() if possible, and fall back on |
240 | signal() if not. Using sigprocmask() ensures that rsync enables all the | |
241 | signals that it needs, just in case it was started in a masked state. | |
242 | ||
5b9cc695 WD |
243 | - Some buffer sizes were expanded a bit, particularly on systems where |
244 | MAXPATHLEN is overly small (e.g. cygwin). | |
245 | ||
246 | - If io_printf() tries to format more data than fits in the buffer, exit | |
247 | with an error instead of transmitting a truncated buffer. | |
ce0da32a | 248 | |
d409c6ac WD |
249 | - If a va_copy macro is defined, lib/snprintf.c will use it when defining |
250 | the VA_COPY macro. | |
251 | ||
b1b04fcd WD |
252 | - Reduced the amount of stack memory needed for each level of directory |
253 | recursion by nearly MAXPATHLEN bytes. | |
254 | ||
5481e42c WD |
255 | - The wildmatch function was extended to allow an array of strings to be |
256 | supplied as the string to match. This allows the exclude code to do less | |
257 | string copying. | |
d37bc73a WD |
258 | |
259 | - Got rid of the safe_fname() function (and all the myriad calls) and | |
5481e42c WD |
260 | replaced it with a new function in the log.c code that filters all the |
261 | output going to the terminal. | |
d37bc73a WD |
262 | |
263 | - Unified the f_name() and the f_name_to() functions. | |
264 | ||
ce0da32a WD |
265 | DEVELOPER RELATED: |
266 | ||
4e194bf1 WD |
267 | - The diffs in the patches dir now require "patch -p1 <DIFF" instead of |
268 | the previous -p0. Also, the version included in the release tar now | |
269 | affect generated files (e.g. configure, rsync.1, proto.h, etc.), so | |
270 | it is no longer necessary to run autoconf and/or yodl unless you're | |
271 | applying a patch that was checked out from CVS. | |
272 | ||
ce0da32a WD |
273 | - Several diffs in the patches dir now use the proper --enable-FOO |
274 | configure option instead of --with-FOO to turn on the inclusion of | |
275 | the newly patched feature. | |
276 | ||
4e194bf1 WD |
277 | - There is a new script, "prepare-source" than can be used to update the |
278 | various generated files (proto.h, configure, etc.) even before configure | |
279 | has created the Makefile (this is mainly useful when patching the source | |
280 | with a patch that doesn't affect generated files). | |
281 | ||
282 | - The testsuite now sets HOME so that it won't be affected by a file such | |
283 | as ~/.popt. |