
On Wed, 9 Jan 2019, Glenn McIntosh wrote:
On 8/1/19 11:44 pm, Russell Coker via luv-main wrote:
Below is an example. Is there a good way of preserving capabilities apart from running "getcap /bin/* /sbin/* /usr/bin/* /usr/sbin/*" and storing the output?
Since the capabilities are stored using extended attributes, then using the '-X' flag on rsync should do the trick. You may need to be root user to be able to create these on the destination (or alternatively use fake-super on rsync).
rsync flags I frequently see people forget to use on rsync when they want the destination to be exactly the same as the source: rsync -HAXS Bugger, my backup software — BackupPC — doesn't support --sparse (it actually reimplements some of rsync in perl). Apparently I've never noticed. As of 13 years ago, hard links weren't supported either, but that was scheduled to be fixed in the next version. I wonder if it was fixed by the time my first backup of my current pool was performed in 2008? Meanwhile, where did the intervening years between 2008 and 2018 disappear to? -- Tim Connors