Someone told me to use the following to get all the attributes

You create a file using

pax -o saveext -wf *pax_file_name files_to_add*

and

pax -ppx -rf *pax_file_name*

to extract the files.

On Thu, 25 Jan 2024 at 13:49, Styles, Andy (CIO GS&S - Core Infrastructure
& IT Operations ) <[email protected]> wrote:

> Classification: Public
>
> You probably need the -p e switch:
>
>            e
>                     Preserves the user ID, group ID, file mode, access
> time,
>                     modification time, extended attributes, and ACL
> entries. Prior
>                     to z/OS 1.8, audit flags and file format (line end)
> attributes
>                     were not restored because they are not available in any
>                     archive format. The extended attributes are the apsl
> flags
>                     that are set by the extattr command. A pax format
> archive can
>                     be used to store the audit flags and file format, and
> -p e
>                     will restore them when available.
>
>
> Andy Styles
> z/Series Systems Programmer
>
> -----Original Message-----
> From: IBM Mainframe Discussion List <[email protected]> On Behalf
> Of Radoslaw Skorupka
> Sent: Thursday, January 25, 2024 1:43 PM
> To: [email protected]
> Subject: pax and extended attributes
>
> *** This email is from an external source - be careful of attachments and
> links. Please report suspicious emails ***
>
> 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
> Lloyds Banking Group plc. Registered Office: The Mound, Edinburgh EH1 1YZ.
> Registered in Scotland no. SC95000. Telephone: 0131 225 4555.
>
> Lloyds Bank plc. Registered Office: 25 Gresham Street, London EC2V 7HN.
> Registered in England and Wales no. 2065. Telephone 0207626 1500.
>
> Bank of Scotland plc. Registered Office: The Mound, Edinburgh EH1 1YZ.
> Registered in Scotland no. SC327000. Telephone: 03457 801 801.
>
> Lloyds Bank Corporate Markets plc. Registered office: 25 Gresham Street,
> London EC2V 7HN. Registered in England and Wales no. 10399850.
>
> Scottish Widows Schroder Personal Wealth Limited. Registered Office: 25
> Gresham Street, London EC2V 7HN. Registered in England and Wales no.
> 11722983.
>
> Lloyds Bank plc, Bank of Scotland plc and Lloyds Bank Corporate Markets
> plc are authorised by the Prudential Regulation Authority and regulated by
> the Financial Conduct Authority and Prudential Regulation Authority.
>
> Scottish Widows Schroder Personal Wealth Limited is authorised and
> regulated by the Financial Conduct Authority.
>
> Lloyds Bank Corporate Markets Wertpapierhandelsbank GmbH is a wholly-owned
> subsidiary of Lloyds Bank Corporate Markets plc. Lloyds Bank Corporate
> Markets Wertpapierhandelsbank GmbH has its registered office at
> Thurn-und-Taxis Platz 6, 60313 Frankfurt, Germany. The company is
> registered with the Amtsgericht Frankfurt am Main, HRB 111650. Lloyds Bank
> Corporate Markets Wertpapierhandelsbank GmbH is supervised by the
> Bundesanstalt für Finanzdienstleistungsaufsicht.
>
> Halifax is a division of Bank of Scotland plc.
>
> HBOS plc. Registered Office: The Mound, Edinburgh EH1 1YZ. Registered in
> Scotland no. SC218813.
>
>
>
> This e-mail (including any attachments) is private and confidential and
> may contain privileged material. If you have received this e-mail in error,
> please notify the sender and delete it (including any attachments)
> immediately. You must not copy, distribute, disclose or use any of the
> information in it or any attachments. Telephone calls may be monitored or
> recorded.
>
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
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