[Bug 9749] New: hardlinkes files are copies instat of make a link

samba-bugs at samba.org samba-bugs at samba.org
Thu Mar 28 14:10:21 MDT 2013


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

           Summary: hardlinkes files are copies instat of make a link
           Product: rsync
           Version: 3.0.9
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: dieter.ferdinand at gmx.de
         QAContact: rsync-qa at samba.org


hello,
i have a big problem with my backups because rsync don't make hardlinks in this
situation:
old dirs:
b/1
b/2
new dirs:
a/1
a/2
b/1
b/2
all files in directory a are hardlinks to files in directory b

if a new dir have hardlinks to files, which are in directories, which are
processed after the new directory, no hardlink was made, all files are copied!

i think, this is because rsync don't check if the file have hardlinks or if it
find hardlinks and don't no at this point where the other link is and if it
should be in a dir, which ist backuped.
so rsync copy the file without need instat of make a link and before rsync can
read the other link, my backup-drive is full und backup break!

my command line: 
rsync -l -H -r -t -D -p -v -P --force --timeout=3600 -H
--link-dest=/hd/backup2/amd-k8-daten2/mpeg//03
--link-dest=/hd/backup2/amd-k8-daten2/mpeg//02
--link-dest=/hd/backup2/amd-k8-daten2/mpeg//01
--link-dest=/hd/backup2/amd-k8-daten2/mpeg//03/ /hd/daten2/mpeg/
/hd/backup2/amd-k8-daten2/mpeg//04/

i try to find a option to read all fileinformation before backup is started,
bat i don't find one.

at the time, i use rsync first time for backup, i remember, that rsync first
read complete path and then copy the files, this will be slowers as the
incremental method, but for hardlinks, i think, this method is better.

goodby

-- 
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