Description of problem: I have a backup script I use to backup my file systems with incremental backups. The script works very well with Fedora 8, but it bombs completely with Fedora 9. The errors from rsync are: rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32) [receiver] internal abbrev error! rsync error: error in rsync protocol data stream (code 12) at xattrs.c(565) [receiver=3.0.2] rsync: connection unexpectedly closed (1694 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(635) [sender=3.0.2] Version-Release number of selected component (if applicable): How reproducible: 100% on my system. I have not figured out reproduce steps which don't use my external disk and file systems created with Fedora 8... The following is the command I execute: Steps to Reproduce: 1. mkdir -p /media/backups 2. mount /dev/sdb1 /media/backups 3. mkdir -p /media/backups/hartnell.local/DellPrecision490/Fedora8/20080606.dir 4. mkdir -p /dev/shm/lvbackup/src 5. mount /dev/DellPrecision/Fedora8 /dev/sdm/lvbackup/src/. 6. rsync -aXHSA --delete --link-dest=/media/backups/hartnell.local/DellPrecision490/Fedora8/20080527.dir /dev/shm/lvbackup/src/. /media/backups/hartnell.local/DellPrecision490/Fedora8/20080606.dir/. Actual results: rsync: writefd_unbuffered failed to write 4 bytes [sender]: Broken pipe (32) [receiver] internal abbrev error! rsync error: error in rsync protocol data stream (code 12) at xattrs.c(565) [receiver=3.0.2] rsync: connection unexpectedly closed (1694 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(635) [sender=3.0.2] Expected results: Successful backup. Additional info: The backup works without the -X option. But then the seLinux attributes are not backed-up, making the restore extremely difficult.
See related bug #450360.
Created attachment 308586 [details] test case I found a small enough subset of my directory tree to attach as a test case. Running the following commands will reproduce the bug: 1. tar xfj rsync-test.tar.bz2 2. cd rsync-test 3. ./test.sh
I see there is now an upstream fix. I am testing it now with my backup script.
Looks like the upstream "fix" completely breaks the -X attribute. Please re-open the upstream bug. I have already commented about the breakage in the bug report, but I don't have sufficient privilege to re-open.
bill can you check if 3.0.3 works for you ? I am pushing it to testing but will dump it if the bug is still present
rsync-3.0.3-0.fc9 has been submitted as an update for Fedora 9
rsync-3.0.3-0.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update rsync'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-5899
I am on the road this week, so I can't try my backup and restore scripts. But I did run a few tests on my laptop. It looks good to me. :)
Great, I will let bodhi close the bug, do not forget to add karma to the update :-)
rsync-3.0.3-0.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.