- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Is it safe to combine tar and pax in backup script...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago - last edited a week ago by support_s
a week ago - last edited a week ago by support_s
Is it safe to combine tar and pax in backup scripts on HP-UX 11?
Hello everyone,
I’m working on a backup script for HP-UX 11 and I have a question about compatibility and best practices.
Currently, my workflow looks like this:
- I use tar to create an archive of the system files (with certain exclusions).
- Then I use pax to handle lists and more flexible formats, especially when I need support for large files.
The idea is something like:
But in some cases, I’ve seen people use tar first and then compress or process with pax.
Questions:
- Does it make sense to combine tar and pax in the same workflow?
- Are there any risks of incompatibility between formats (e.g., classic tar vs pax)?
- What’s the best practice on HP-UX for large backups (files > 8 GB) and complex exclusions?
Thanks for any guidance or experience you can share!
- Tags:
- Operating System
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
a week ago
Re: Is it safe to combine tar and pax in backup scripts on HP-UX 11?
Hi @Indeleble ,
Yes, it is generally safe to use both tar and pax in backup scripts on HP-UX 11, but you need to be mindful of differences in features, portability, and archive format compatibility. tar is widely supported and simple, while pax is more modern, POSIX-compliant, and better at handling long filenames and extended attributes. Mixing them is fine as long as you clearly define which tool creates archives and which extracts them, and you avoid relying on features unique to one tool.
Also consider these risks before using the tar and pax in backup scripts:
1. Format mismatch: If you create an archive with pax using extended attributes, extracting with tar may lose metadata.
2. Script complexity: Mixing tools can confuse future maintainers. It’s best to standardize on one tool unless you have a clear reason.
3. Performance: tar is slightly faster for simple backups, while pax is more robust for complex directory structures.
Best Practices:
1. Use pax for creating archives if you need portability and long filename support.
2. Use tar for simple, legacy-compatible backups where speed matters more than metadata.
3. If combining them, document clearly which tool is used for which step (e.g., pax for creation, tar for extraction).
4. Test your backup and restore process thoroughly to ensure no data or attributes are lost.
Thank You!
I work with HPE but opinions expressed here are mine.
HPE Tech Tips videos on How To and Troubleshooting topics
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
a week ago
Query: Is it safe to combine tar and pax in backup scripts on HP-UX 11?
System recommended content:
1. Open System Services System Calls Reference Manual
2. Ignite-UX Release Notes HP-UX 11iv1, HP-UX 11iv2, and HP-UX 11iv3 (5900-3360, November 2013)
Please click on "Thumbs Up/Kudo" icon to give a "Kudo".
Thank you for being a HPE valuable community member.
