I have to move some directory trees from one file system location to another. The tree is rather complex (dozen directories, hundreds files) and some files do have extended attributes. My goal is to preserve all the metadata like files ownership, FSP, ACL, tags, audit flags, etc.

I tried to use pax
pax -wvf /u/pack1 -x pax .    (current directory)
and then
pax -rvf /u/pack1 . (also current directory, but different one)

It looks OK, but a flag is lost.

The user is UID 0 (after su command) and has READ authority to BPX.FILEATTR.*

Did I miss something?


Finally I used copytree, but this tool does not allow to create temporary packages, which is some disadvantage in my scenario.

Or maybe there is just another tool to accomplish the task?

--
Radoslaw Skorupka
Lodz, Poland

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
  • pax... Radoslaw Skorupka
    • ... Styles, Andy (CIO GS&S - Core Infrastructure & IT Operations )
      • ... Colin Paice
    • ... Paul Gilmartin
      • ... Radoslaw Skorupka

Reply via email to