Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 429462

Summary: net-misc/rsync - add --copy-devices support
Product: Gentoo Linux Reporter: Adriano Meirelles <adriano>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: enhancement CC: leho, thelan
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=494313
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for rsync 3.0.9

Description Adriano Meirelles 2012-08-02 09:48:27 UTC
A very userful rsync patch is missing. The --copy-devices patch, which can copy raw device contents over the wire (like for backup whole hard drives), the opposite of --devices.

No other application on portage tree can do that straightforward.

The patch (already in Fedora since 2009): https://bugzilla.redhat.com/show_bug.cgi?id=494313

More users asking for that: http://forums.gentoo.org/viewtopic-t-915254-view-previous.html

Thanks! :)

Reproducible: Always
Comment 1 Adriano Meirelles 2012-08-02 10:03:04 UTC
Created attachment 320028 [details, diff]
Patch for rsync 3.0.9

The easier patch shortcut (clean).

More handsome rsync patches here:

http://mirrors.ibiblio.org/pub/mirrors/rsync/src/rsync-patches-3.0.9.tar.gz
Comment 2 Leho Kraav (:macmaN @lkraav) 2015-06-07 08:25:54 UTC
+1000

verified working. definitely recommended to add.
Comment 3 Leho Kraav (:macmaN @lkraav) 2015-06-07 08:31:56 UTC
Patch needs s/a\//a\/rsync-3.1.1\//g and same for b/. Not sure if there's a Gentoo way for oneshot application of a patch that diffs just a/file.c
Comment 4 insurgo 2019-12-03 03:09:58 UTC
Is there any blocker moving this forward?
Comment 5 insurgo 2019-12-03 03:10:52 UTC
Note that write-devices patch would also be needed to do the reverse.
Comment 6 kfm 2021-08-20 16:12:12 UTC
(In reply to insurgo from comment #5)
> Note that write-devices patch would also be needed to do the reverse.

Since you posted this, support for the --write-devices option was added by version 3.2.0. Unfortunately, support for --copy-devices remains as a separate patch.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-14 08:51:05 UTC
I'm not really keen on us downstream patching rsync, but what we could do is integrate https://github.com/WayneD/rsync-patches.