rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rdiff-backup-users] Extended attributes not stored under /mnt/xyz S


From: Simon Blandford
Subject: Re: [rdiff-backup-users] Extended attributes not stored under /mnt/xyz SOLVED
Date: Fri, 16 Oct 2009 13:58:00 +0100
User-agent: Thunderbird 2.0.0.23 (X11/20090822)

It seems I needed to add some options in /etc/fstab. Although I'm a bit mystified as to why the root partition doesn't also need these options specified to work.

So the line in fstab used to read something like
/dev/xxy /mnt/xyz          ext3    defaults 0 0
...and now reads something like....
/dev/xxy /mnt/xyz          ext3    defaults,user_xattr,acl 0 0

BTW. I installed the pylibacl library to get acls to work too.

Simon Blandford wrote:
I have installed the pyxattr-0.4.0-2.el5 rpm and I am using the rdiff-backup-1.2.8-1.el5.rf rpm on CentOS 5.

I have se-linux fully switched off but I would like to preserve the se-linux extended attributes in the backup. I would like to restore files with rsync, not rdiff-backup when necessary and so I need the extended attributes to actually be stored as extended attributes and not just represented in the rdiff-backup-data directory.


As a test, if I can see that rdiff-backup works on my root file system.
$ cd /root
$ rdiff-backup --include /etc/fstab --exclude /etc /etc test
$ ll -Z test
-rw-r--r--  root root user_u:object_r:etc_t:s0         fstab
drwx------  root root                                  rdiff-backup-data


If I repeat this test on a mounted ext3 partition the selinux attributes are missing.
$ cd /mnt/data
$ rdiff-backup --include /etc/fstab --exclude /etc /etc test
$ ll -Z test
-rw-r--r--  root root                                  fstab
drwx------  root root                                  rdiff-backup-data


Yet I can manually set the selinux attributes on this file. So the mounted partition IS capable of storing the attributes.
$ chcon user_u:object_r:etc_t:s0 test/fstab
$ ll -Z test
-rw-r--r--  root root user_u:object_r:etc_t:s0         fstab
drwx------  root root                                  rdiff-backup-data


Is rdiff-backup wrongly assuming that the target directory location can't handle extended attributes?


_______________________________________________
rdiff-backup-users mailing list at address@hidden
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki





reply via email to

[Prev in Thread] Current Thread [Next in Thread]