Appending to an existing archive
To add additional files and directories to a previously created uncompressed archive, use the -a (append) option.
Example: To add the file oops.forgot to the existing
archive allfiles.pax, issue: :
pax -awvf allfiles.pax oops.forgot
Result: The file oops.forgot is added to the end of the archive. If a file with the same name already exists in the archive, it will not be overwritten or replaced.
Note:
- You can append directly to archives in sequential MVS™ data sets only. pax and tar do not support appending to archives that reside in partitioned MVS data sets.
- The equivalent tar command is:
tar -rvf allfiles.pax oops.forgot