Hi, I have observed the progress made on extended attribute handling, mostly done by Marco.
Today I decided to give it a try. I'm mostly using XFS as my file system, and unfortunately, I find that extended attributes there are not restored (and probably not backed up). ACLs, by the way, are handled correctly and also restored correctly to an ext3 file system. Anyway - here is my test case. The file ACLs has ACLs and extended attributes added. The file ACLs.restored is the restored version. a...@neuelf:~/testbackup> ls -l insgesamt 8 -rw-r--r--+ 1 arno users 0 14. Okt 11:17 ACLs -rw-r--r--+ 1 arno users 0 14. Okt 11:17 ACLs.restored a...@neuelf:~/testbackup> getfacl * # file: ACLs # owner: arno # group: users user::rw- user:its-info:r-- group::r-- mask::r-- other::r-- # file: ACLs.restored # owner: arno # group: users user::rw- user:its-info:r-- group::r-- mask::r-- other::r-- a...@neuelf:~/testbackup> getfattr -d ACLs* # file: ACLs user.Arnos=0sVGVzdCEK <== this xattr has special chars user.xattrib="This is a POSIX xattrib." a...@neuelf:~/testbackup> attr -g Arnos ACLs Attribute "Arnos" had a 6 byte value for ACLs: Test! a...@neuelf:~/testbackup> attr -g Arnos ACLs.restored attr_get: Keine Daten verfügbar <== "No data available" Could not get "Arnos" for ACLs.restored As you see, the extended attributes of this file are not restored, and I don't see the actual data in a hexdump of the volume the backup was restored to: > 00000180 00 5c 31 20 32 20 2f 68 6f 6d 65 2f 61 72 6e 6f |.\1 2 /home/arno| > 00000190 2f 74 65 73 74 62 61 63 6b 75 70 2f 41 43 4c 73 |/testbackup/ACLs| > 000001a0 00 50 30 41 20 49 41 41 6f 68 20 49 47 6b 20 42 |.P0A IAAoh IGk B| > 000001b0 20 50 6f 20 42 6b 20 41 20 41 20 42 41 41 20 49 | Po Bk A A BAA I| > 000001c0 20 42 4b 31 5a 63 6c 20 42 4b 31 5a 63 6c 20 42 | BK1Zcl BK1Zcl B| > 000001d0 4b 31 61 48 73 20 41 20 41 20 43 00 00 00 00 00 |K1aHs A A C.....| > 000001e0 00 01 00 00 03 f0 00 00 00 3d 75 73 65 72 3a 3a |.........=user::| > 000001f0 72 77 2d 0a 75 73 65 72 3a 69 74 73 2d 69 6e 66 |rw-.user:its-inf| > 00000200 6f 3a 72 2d 2d 0a 67 72 6f 75 70 3a 3a 72 2d 2d |o:r--.group::r--| > 00000210 0a 6d 61 73 6b 3a 3a 72 2d 2d 0a 6f 74 68 65 72 |.mask::r--.other| > 00000220 3a 3a 72 2d 2d 0a 00 00 00 00 01 00 00 00 0a 00 |::r--...........| > 00000230 00 00 14 da 39 a3 ee 5e 6b 4b 0d 32 55 bf ef 95 |....9..^kK.2U...| > 00000240 60 18 90 af d8 07 09 00 00 00 02 00 00 00 01 00 |`...............| > 00000250 00 00 65 32 20 32 20 2f 68 6f 6d 65 2f 61 72 6e |..e2 2 /home/arn| The reason I'm investigating this, by the way, is that I'd like to update http://xfs.org/index.php/XFS_FAQ#Q:_How_can_I_backup_a_XFS_filesystem_and_ACLs.3F to state that Bacula supports XFS extended attributes :-) Arno -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabrück www.its-lehmann.de ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Bacula-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-devel
