DO NOT REPLY [Bug 6746] New: file from link-dest-source is copies and not linked for identical files

samba-bugs at samba.org samba-bugs at samba.org
Sun Sep 20 03:30:16 MDT 2009


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

           Summary: file from link-dest-source is copies and not linked for
                    identical files
           Product: rsync
           Version: 3.0.6
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          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 problem with the --link-dest-option.

i make backup from some systems with this option for every day in the month.

some of the files are copied intead to make hard-links to the identical source
file from one of the given link-destination dir.

after the last update of rsync, it seems to get better. but by the check for
files, which are copied and not linked, i find many of this files and i dont
know, why rsync make this.

the source systems are windows with cygwin and linux with different systems
(suse sles 10, self compiled system).

i use a script for the backup and this options for all backups:
rsync -l -o -g -H -r -t -D -p -v -P --force --timeout=$RSYNC_TIMEOUT
--link-dest=dir source destination

the option --link-dest ist used more the one time for some backups.

here one sample of one file:
----rwx---    1 root     root       377608 Thu Jun 25 10:25:51 2009
17/d/daten/Programme/StarMoney Business 4.0 S-Edition/app/sfktools.dll
----rwx---    1 root     root       377608 Thu Sep 17 04:44:10 2009
17/d/daten/Programme/StarMoney Business 4.0 S-Edition/app/sfktools.dll
----rwx---    1 root     root       377608 Thu Sep 17 04:44:10 2009
17/d/daten/Programme/StarMoney Business 4.0 S-Edition/app/sfktools.dll
----rwx---    1 root     root       377608 Thu Jun 25 10:25:51 2009
18/d/daten/Programme/StarMoney Business 4.0 S-Edition/app/sfktools.dll
----rwx---    1 root     root       377608 Fri Sep 18 04:27:05 2009
18/d/daten/Programme/StarMoney Business 4.0 S-Edition/app/sfktools.dll
----rwx---    1 root     root       377608 Fri Sep 18 04:27:05 2009
18/d/daten/Programme/StarMoney Business 4.0 S-Edition/app/sfktools.dll
----rwx---    1 root     root       377608 Thu Jun 25 10:25:51 2009
19/d/daten/Programme/StarMoney Business 4.0 S-Edition/app/sfktools.dll
----rwx---    1 root     root       377608 Sat Sep 19 04:11:58 2009
19/d/daten/Programme/StarMoney Business 4.0 S-Edition/app/sfktools.dll
----rwx---    1 root     root       377608 Sat Sep 19 04:11:58 2009
19/d/daten/Programme/StarMoney Business 4.0 S-Edition/app/sfktools.dll

i used this options for ls to get the list:
    ls -dlt --full-time  "$F"
    ls -dltc --full-time  "$F"
    ls -dltu --full-time  "$F"

this is always the same unchanged file for the backups from three day this
month.

i try something, to find out, why this file ist not linked, but i can't find
the reasen!

for some files, i find a reasen for this. this files have a creation or changed
time in the future, but this is not by all files. i correct this time or delete
ist, if no more needed, and it works again.

i search for an option, to link all files from link-dest-dir which are
identical to save space on harddisk, even the times or rights of the file is
changed. rsync always make new copies, if rights, owner or time is changed. for
backups, i only need the last setting, so the file can be linked and the
attributes can changed to the new settings.

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, or are watching the QA contact.


More information about the rsync mailing list