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