I have a home server running CentOS 6.5 which is comprised of 1 OS disk and 5 other disks as part of a software Raid 5. The raid is mounted at /raid. All filesystems are ext4.
I would like to use rsync to backup my OS disk to the raid using the following command:
Code: Select all
rsync -aAXv --delete --stats / /raid/os-backup --exclude={/raid/*,/dev/*,/proc/*,/sys/*,/tmp/*,/mnt/*,/lost+found/,/var/cache/yum/*}
Code: Select all
...
rsync: rsync_xal_clear: lremovexattr("raid","security.selinux") failed: Permission denied (13)
...
rsync: rsync_xal_set: lsetxattr("selinux","security.selinux") failed: Permission denied (13)
rsync: rsync_xal_set: lsetxattr("selinux/access","security.selinux") failed: Permission denied (13)
rsync: rsync_xal_set: lsetxattr("selinux/checkreqprot","security.selinux") failed: Permission denied (13)
...
Am I approaching this problem correctly? If so, is there a way to resolve the rsync errors and make SELinux happy?
Thank you very much for your time.