DO NOT REPLY [Bug 7683] New: New rsync deletes destination files it shouldn't

samba-bugs at samba-bugs at
Thu Sep 16 08:42:42 MDT 2010

           Summary: New rsync deletes destination files it shouldn't
           Product: rsync
           Version: 3.0.7
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P3
         Component: core
        AssignedTo: wayned at
        ReportedBy: vaskorbmail-bugzilla at
         QAContact: rsync-qa at
                CC: vaskorbmail-bugzilla at

I have just upgraded to Ubuntu 10.04.1 (from 8.04, I think). I previously used
the rsync program regularly to backup files incrementally between locally
mounted Windows type filesystems (hard disks and memory pen etc.) without
problems. However, when I do a trial run using the -n parameter on the upgraded
system, the computer deletes a large number of files on the destination
filesystem (and does not evidently recopy these across).

I have copied and pasted some output below to demonstrate the issue. The first
command shows the execution of rsync on a small sample of the original fileset
and the output shows the files being deleted (in -n trial mode). The 'ls'
command next shows the contents of the "New recovery" source folder to show
that the roa.doc file does indeed exist and shouldn't have been deleted on the
destination without being recopied. Finally, I have just run the rsync command
on its own to show the version number.

Interestingly, I have copied an old version on the rsync program from a old
Linux CD and it exhibits the same problem running under the new Ubuntu, so it
may be an issue relating to the way rsync reads a VFAT filesystem.

vb at celery:~$ sudo rsync --modify-window=2 -r -u -t -n --delete-during
--progress /media/sda1/My\ Documents/Vaskor/Tasks /media/4BEF-DCDA/Vaskor
sending incremental file list
deleting Tasks/cleanvir.bat
deleting Tasks/CPD Technical Updates 2011 - Topics nomination form.doc
Tasks/Orange free SIM with £5 credit.htm
Tasks/check address.TXT
Tasks/preaching peace.pdf
Tasks/tripletrend34 -
Tasks/New recovery/
deleting Tasks/New recovery/roa.doc
deleting Tasks/New recovery/3-s098~1.jpg
deleting Tasks/New recovery/2/annual~1.doc
deleting Tasks/Taken on disk/Permanent/friends.txt

sent 20578 bytes  received 134 bytes  13808.00 bytes/sec
total size is 124405234  speedup is 6006.43 (DRY RUN)
vb at celery:~$ ls /media/sda1/My\ Documents/Vaskor/Tasks/New\ recovery
1  desktop.ini  New Folder  Thumbs.db
2  CV.doc       linux        ROA.DOC
vb at celery:~$ rsync
rsync  version 3.0.7  protocol version 30
Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others.
Web site:
    64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints,
    socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,
    append, ACLs, xattrs, iconv, symtimes

Configure bugmail:
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the rsync mailing list