[Bug 500605] New: rsync 3.02 --> --dry-run conflicts with --hard-links
http://bugzilla.novell.com/show_bug.cgi?id=500605 Summary: rsync 3.02 --> --dry-run conflicts with --hard-links Classification: openSUSE Product: openSUSE 11.0 Version: Final Platform: x86 OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: madworm_de.novell@spitzenpfeil.org QAContact: qa@suse.de Found By: --- Created an attachment (id=289711) --> (http://bugzilla.novell.com/attachment.cgi?id=289711) rsync preserver harlink error logfile User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042700 SUSE/3.0.10-2.1 Firefox/3.0.10 I use Dirvish to create backups. Dirvish uses rsync to create incremental backups using hardlinks to replicate unchanged files. That way each backup looks like a full version with all files present. When copying such a directory to an external disk, one has to use the -H option of rsync to preserve the hardlink structure. Otherwise one ends up with a hell lot of identical data just being copied. Using --dry-run to check for any potential problems conflicts with --hard-links as no files are actually created in the target directory to link against. Tons of error messages are created about non existing files. This did not throw any errors with previous versions of rsync (e.g. 2.6.9). rsync -av --hard-links --dry-run BACKUP /tmp/ V3.02 errors: rsync: stat "/tmp/BACKUP/2009-02-03--12-56-01/tree/add-on_DVD/Standa_stepper_controller/standa.txt" failed: No such file or directory (2) rsync: stat "/tmp/BACKUP/2009-02-03--12-56-01/tree/add-on_DVD/Standa_stepper_controller/USB-Stepper-Controller-2007-04-04/8SMC1-USB(h) Soft.zip" failed: No such file or directory (2) Same lines with V2.6.9: BACKUP/2009-02-03--12-56-01/tree/add-on_DVD/Standa_stepper_controller/ BACKUP/2009-02-03--12-56-01/tree/add-on_DVD/Standa_stepper_controller/USB-Stepper-Controller-2007-04-04/ Reproducible: Always Steps to Reproduce: 1. create a test source directories in /tmp/X1 : mkdir /tmp/X1 mkdir /tmp/data 2. fill it with files : cd /tmp/data for file in {1..100}; do dd if=/dev/zero of=./$file bs=1k count=16; done 3. create hard linked copies with rsync : rsync -av --hard-links --link-dest=/tmp/X1/data/ data/ data_hl1 .. .. rsync -av --hard-links --link-dest=/tmp/X1/data/ data_hl4/ data_hl5 4. start a --dry-run copy : rsync -av --hard-links --dry-run /tmp/X1/ /tmp/X2 This will fail epically ! 5. The error only occurs if "data_hl5" or more exist. Up to 4 hard linked copies are tolerated. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=500605
Zheng Chen
http://bugzilla.novell.com/show_bug.cgi?id=500605
Petr Uzel
http://bugzilla.novell.com/show_bug.cgi?id=500605
User puzel@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=500605#c1
--- Comment #1 from Petr Uzel
http://bugzilla.novell.com/show_bug.cgi?id=500605
User puzel@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=500605#c2
Petr Uzel
participants (1)
-
bugzilla_noreply@novell.com