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

[opensuse-security] Backup of EA - Extended Attributes



Hi,

All commands (star,dar) that i use to backup, they all doesn't save the EA (only ACL are) on reiserfs and ext3 filesystems !
How could i save them.

$ mount |grep reiserfs
/dev/hda2 on / type reiserfs (rw,acl,user_xattr,attrs)

$ getfacl acl
# file: acl
# owner: lolo
# group: root
user::rw-
user:titi:---
group::rw-                      #effective:-w-
mask::-w-
other::rw-

$ lsattr acl
-----a------- acl

star:
$ star -cz -xattr -acl -H=exustar -f acl.tgz acl
cd ../other_dir

Extraction :

$ star -xvz -xattr -acl -H=exustar -f ../acl.tgz
$ getfacl acl;lsattr acl
# file: acl
# owner: lolo
# group: root
user::rw-
user:titi:---
group::rw-                      #effective:-w-
mask::-w-
other::rw-

------------- acl

dar :
dar -c ../acl
1 inode(s) saved
 with 0 hard link(s) recorded
 0 inode(s) changed at the moment of the backup
 0 inode(s) not saved (no inode/file change)
 0 inode(s) failed to save (filesystem error)
 0 inode(s) ignored (excluded by filters)
 0 inode(s) recorded as deleted from reference backup
 --------------------------------------------
 Total number of inode considered: 1
 --------------------------------------------
 EA saved for 1 inode(s)
 --------------------------------------------

Extraction :

$ cd ../other_dir
$ dar -x ../acl.1.dar
$ getfacl acl;lsattr acl
# file: acl
# owner: lolo
# group: root
user::rw-
user:titi:---
group::rw-                      #effective:-w-
mask::-w-
other::rw-

------------- acl




Thanks a lot,