On Tue, Mar 21, 2017 at 10:06 AM, Lars Behrens <[email protected]> wrote: > Am 21.03.2017 um 14:05 schrieb Nico Kadel-Garcia: >> >> How did you "copy the system"? Tar, for example, does not carry >> along SELinux permissions. The "star" tool can. > > Yes, I forgot about the SELinux permissions, you're right. > > I did an 'rsync -xzav --numeric-ids' > > Where it seems that I should have added an '-X' when selinux comes into > play, as I have learned now.
Thanks. I'd searched in the past for "selinux" in "man rsync" and not found anything so I assumed that it couldn't preserve selinux contexts. I'd also run "ldd /usr/bin/rsync" and not seen libselinux listed. I'll have to recheck.
