Mention the changes made in recent checkins.
[rsync/rsync.git] / NEWS
1 NEWS for rsync 2.6.7 (UNRELEASED)
2 Protocol: 29 (unchanged)
3 Changes since 2.6.6:
4
5   BUG FIXES:
6
7     - Fixed a really old bug that caused --checksum (-c) to checksum all the
8       files encountered during the delete scan (ouch).
9
10     - Made hard-links work with symlinks and devices again.
11
12     - If a device-file/special-file changes permissions, rsync now updates the
13       permissions without recreating the file.
14
15     - If the user specifies a remote-host for both the source and destination,
16       we now output a syntax error rather than trying to open the destination
17       hostspec as a filename.
18
19     - When --inplace creates a new destination file, rsync now creates it with
20       permissions 0600 instead of 0000 -- this makes restarting possible when
21       the transfer gets interrupted in the middle of sending a new file.
22
23     - Reject the combination of --inplace and --sparse since the sparse-output
24       algorithm doesn't work when overwriting existing data.
25
26     - Fixed the directory name in the error that is output when pop_dir()
27       fails.
28
29     - Really fixed the parsing of a "!" entry in .cvsignore files this time.
30
31     - If the generator gets a stat() error on a file, output it (this used to
32       require at least -vv for the error to be seen).
33
34     - If waitpid() fails or the child rsync didn't exit cleanly, we now handle
35       the exit status properly and generate a better error.
36
37     - Fixed some glitches in the double-verbose output when using --copy-dest,
38       --link-dest, or --compare-dest.
39
40     - Fixed the matching of the dont-compress items (e.g. *.gz) against files
41       that have a path component containing a slash.
42
43     - If code reading a filter/exclude file an EINTR error, rsync now clears
44       the error flag on the file handle so it can keep on reading.
45
46     - If --relative is active, simply trim off trailing slashes and dot
47       dirs.  Also, reject a ".." dir if it would be sent as a relative dir.
48
49   ENHANCEMENTS:
50
51     - Added the --append option that makes rsync append data onto files
52       that are longer on the source than the destination (this includes new
53       files).
54
55     - Added the --min-size=SIZE option to exclude small files from the
56       transfer.
57
58     - Added the --compress-level option to allow you to set how aggressive
59       rsync's compression should be (this option implies --compress).
60
61     - Enhanced the parsing of the SIZE value for --min-size and --max-size
62       to allow easy entry of multiples of 1000 (instead of just multiples
63       of 1024) and off-by-one values too (e.g. --max-size=8mb-1).
64
65     - The options --human-readable (-h) and --si change the output of the
66       --stats and the end-of-run summary to be easier to read.
67
68     - If lutimes() and/or lchmod() are around, use them to allow the
69       preservation of attributes on symlinks.
70
71     - The --link-dest option now affects symlinks and devices (when
72       possible).
73
74     - Improved the output of hard-linked and copied files when using
75       --link-dest, --copy-dest, or --compare-dest.
76
77     - Added two config items to the rsyncd.conf parsing:  "pre-xfer exec"
78       and "post-xfer exec".  These allow a command to be specified on a
79       per-module basis that will be run before and/or after a daemon-mode
80       transfer.  (See the manpage for a list of the environment variables
81       that are set with information about the transfer.)
82
83     - When using the --relative option, you can now insert a dot dir in
84       the source path to indicate where the replication of the source dirs
85       should start.  For example, if you specify a source path of
86       rsync://host/module/foo/bar/./baz/dir with -R, rsync will now only
87       replicate the "baz/dir" part of the source path (note: a trailing
88       dot dir is unaffected unless it also has a trailing slash).
89
90     - Added some new --no-FOO options that make it easier to override
91       unwanted implied or default options.  For example, "-a --no-o" (aka
92       "--archive --no-owner") can be used to turn off the preservation of
93       file ownership that is implied by -a.
94
95     - Added the --chmod=MODE option that allows the destination permissions
96       to be changed from the source permissions.  E.g. --chmod=g+w,o-rwx
97
98     - Allow the --temp-dir option to be specified when starting a daemon,
99       which sets the default temporary directory for incoming files.
100
101     - If --delete is combined with --dirs without --recursive, rsync will
102       now delete in any directory whose content is being synchronized.
103
104     - If --backup is combined with --delete without --backup-dir (and
105       without --delete-excluded), we add a "protect" filter-rule to ensure
106       that files with the backup suffix are not deleted.
107
108     - The file-count stats that are output by --progress were improved to
109       better indicate what the numbers mean.  For instance, the output:
110       "(xfer#5, to-check=8383/9999)" indicates that this was the fifth file
111       to be transferred, and we still need to check 8383 more files out of
112       a total of 9999.
113
114     - The include/exclude code now allows a dir/*** directive (with 3
115       trailing stars) to match both the dir itself as well as all the
116       content below the dir (dir/** would not match the dir).
117
118     - Some minor documentation improvements.
119
120     - Updated some diffs in the patches dir.
121
122   INTERNAL:
123
124     - Some buffer sizes were expanded a bit, particularly on systems where
125       MAXPATHLEN is overly small (e.g. cygwin).
126
127     - If io_printf() tries to format more data than fits in the buffer, exit
128       with an error instead of transmitting a truncated buffer.
129
130     - If a va_copy macro is defined, lib/snprintf.c will use it when defining
131       the VA_COPY macro.
132
133     - Reduced the amount of stack memory needed for each level of directory
134       recursion by nearly MAXPATHLEN bytes.
135
136     - The wildmatch function was extended to allow an array of strings to
137       be supplied as the string to match.  This allows the exclude code to
138       do less string copying.
139
140     - Got rid of the safe_fname() function (and all the myriad calls) and
141       replaced it with a new function in the log.c code that filters all
142       the output going to the terminal.
143
144     - Unified the f_name() and the f_name_to() functions.
145
146   DEVELOPER RELATED:
147
148     - Several diffs in the patches dir now use the proper --enable-FOO
149       configure option instead of --with-FOO to turn on the inclusion of
150       the newly patched feature.
151