Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 429462 - net-misc/rsync - add --copy-devices support
Summary: net-misc/rsync - add --copy-devices support
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: Gentoo's Team for Core System packages
Keywords: PATCH
Depends on:
Reported: 2012-08-02 09:48 UTC by Adriano Meirelles
Modified: 2024-03-03 22:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

Patch for rsync 3.0.9 (copy-devices.diff,4.30 KB, patch)
2012-08-02 10:03 UTC, Adriano Meirelles
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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):

More users asking for that:

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:
Comment 2 Leho Kraav (:macmaN @lkraav) 2015-06-07 08:25:54 UTC

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