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

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


https://bugzilla.samba.org/show_bug.cgi?id=7683

           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 samba.org
        ReportedBy: vaskorbmail-bugzilla at yahoo.co.uk
         QAContact: rsync-qa at samba.org
                CC: vaskorbmail-bugzilla at yahoo.co.uk


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
Tasks/
deleting Tasks/cleanvir.bat
deleting Tasks/CPD Technical Updates 2011 - Topics nomination form.doc
Tasks/Moringa-Brochure-Anstiss.pdf
Tasks/Orange free SIM with £5 credit.htm
Tasks/Tasks.txt
Tasks/Time.txt
Tasks/attachments_18_07_2010.zip
Tasks/benefits.txt
Tasks/benefits.txt~
Tasks/check address.TXT
Tasks/chris-howard-bwb.pdf
Tasks/phone_usa.jsp.html
Tasks/ppp36.pdf
Tasks/preaching peace.pdf
Tasks/spam2.txt
Tasks/statistics.txt
Tasks/tci-guide-to-investments.pdf
Tasks/tiscali.ins
Tasks/trendexplosion.pdf
Tasks/tripletrend34 - bad.zip
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  Careers.zip  desktop.ini  New Folder  Thumbs.db
2  CV.doc       linux        ROA.DOC     Vaskor.zip
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: http://rsync.samba.org/
Capabilities:
    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: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- 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