[Bug 8450] New: --link-dest seems not to work mounted NTFS file systems

samba-bugs at samba.org samba-bugs at samba.org
Mon Sep 12 10:06:13 MDT 2011


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

           Summary: --link-dest seems not to work mounted NTFS file
                    systems
           Product: rsync
           Version: 3.0.8
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: toralf.foerster at gmx.de
         QAContact: rsync-qa at samba.org


I use rsync to create daily/weekly/monthly backups to an external USB drive of
my Gentoo Linux using this command line options :

--archive --delete --delete-excluded --exclude-from=/exclude.list
--link-dest=<old dest> --stats --verbose <src> <dest>

This works like a charm for all files located on my ext3 Linux partition.
However for the 2 files of a NTFS drive not.

Here rsync always transfers an unchanged file too, even if <old dest> contains
that file (from a backup made yesterday) and therefore it should better be
hard-linked only instead of being transferred twice.

What is really curious - at the beginning of using this backup solution (some
weeks ago) the <dest> doesn't contain an older version of that file, and there
hard-linking worked IIRC.

The NTFS drive is mounted read-only:

tfoerste at n22 ~ $ mount | grep C
/dev/sda1 on /mnt/C type ntfs
(ro,noexec,nosuid,nodev,noatime,uid=1000,gid=100,umask=0027)

<src>      is /mnt/C/notes/data/archive/
<dest>     is /mnt/media/daily/f/
<old dest> is /mnt/media/weekly/b (given as ../../weekly/b at the command line)

Here you can see that different hard links are used :

tfoerste at n22 ~ $ ls -il /mnt/C/notes/data/archive/l_DE1448.nsf
/mnt/media/daily/f/archive/l_DE1448.nsf 
/mnt/media/weekly/b/archive/l_DE1448.nsf 
  80719 -r-xr-x--- 1 tfoerste users 8126464 Sep  2 13:40
/mnt/C/notes/data/archive/l_DE1448.nsf
2293796 -r-xr-x--- 1 tfoerste users 8126464 Sep  2 13:40
/mnt/media/daily/f/archive/l_DE1448.nsf
2310874 -r-xr-x--- 1 tfoerste users 8126464 Sep  2 13:40
/mnt/media/weekly/b/archive/l_DE1448.nsf

md5sum proves identical content, the file attributes shouldn't changed too
(NTFS is always mounted read-only, never read-write) :

tfoerste at n22 ~ $ md5sum /mnt/C/notes/data/archive/l_DE1448.nsf
/mnt/media/daily/f/archive/l_DE1448.nsf 
/mnt/media/weekly/b/archive/l_DE1448.nsf 
88ef0d516c5696bf120d749f4b1fc9ba  /mnt/C/notes/data/archive/l_DE1448.nsf
88ef0d516c5696bf120d749f4b1fc9ba  /mnt/media/daily/f/archive/l_DE1448.nsf
88ef0d516c5696bf120d749f4b1fc9ba  /mnt/media/weekly/b/archive/l_DE1448.nsf

OTOH does it make any difference whether the <dest> drive at the external USB
drive is mounted as ext2 instead of ext3 ?

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the rsync mailing list