Hi list!
> Does it restore all attributes in case? Or is there any additional stept
> to be aware of?
BackupPC does not handle ACL's, SElinux, etc. Those must be
separately backed up...
I did some research on this topic and stumbled at this page:
http://www.lesbonscomptes.com/pages/extattrs.html
rsync 3.0.9 supports xattributes but I assume neither BackupPC nor
the perl rsync used by BackupPC supports them, correct?
So we have to backup (and restore) these attributs seperately. With
Linux we have the getfattr and setfattr commands.
So I created a short dump script which dumps the xattributes in a
seperate file which can be backed up by BackupPC with the DumpPreShareCmd
setting.
For restore create a symlink to the file and it will restore the
xattr properly if configuread as "RestorePostUserCmd". Be aware it
can only restore the full file system, no entire files!
Just as a base for own solutions:
cat dump_xattr.sh
#!/bin/bash
if [ "$1" == "" ] ; then exit 255; fi
pushd $1
getfattr --dump -R *> user_xattr.dump
#to restore use setfattr --restore user_xattr.dump
|
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/ _______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|