[Bug 2675] --backup --suffix=.foo --delete-after doesn't backup deleted files

Wayne Davison wayned at samba.org
Mon May 2 18:00:01 GMT 2005

On Mon, May 02, 2005 at 06:54:03PM +0200, Paul Slootman wrote:
> Hmm, I looked through the messages to the mailing list since 2.6.4 was
> released, and couldn't find anything relevant.


> BTW, there was a bug reported about the fact that rsync now shows
> non-7bit-ascii chars as '?' now.

The CVS rsync calls setlocale() so that the isprint() function doesn't
affect too many characters (such as printable high-bit letters).  It has
also changed its output format to backslash-escape non-printable chars
(e.g. "\012", "\\") instead of substituting a '?'.  This lets scripts
decode the real filename, if desired.  For example, in perl:

    $filename =~ s/\\(\d\d\d|\\)/ $1 eq "\\" ? $1 : chr(oct($1)) /eg;

> I tried checking the NEWS and OLDNEWS files to see when that had been
> implemented (I thought 2.6.4 but wasn't sure), but I can't find any
> mention of this change.

It apparently was left out of the NEWS for 2.6.4.  How strange.

> So rsync scans all the files twice apparently [for deletion]?

Yes, the various delete passes have always done a separate scan.  The
new --delete-during (--del) option causes the deletions to happen during
the file-sending scan, making it more efficient.


More information about the rsync mailing list