HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- cpio vs tar
Operating System - Linux
1827706
Members
2892
Online
109967
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
03-26-2008 08:08 AM
03-26-2008 08:08 AM
cpio vs tar
hello,
I need to replicate several directories of a NFS files system coming from a SFU NAS file server.
The destination machine is RHEL4.
I mounted both files systems (source and destination) on a HPUX 11i machine.
I tried to use cpio (as I'm used in the UX-UX transfer) like this:
find . -depth -print |cpio -pdum /aaa/xfer/
but it returns errors with sym links.
I tried to use tar like this (as suggested by the man page):
tar cvf - . |( cd /aaa/xfer/ ; tar tvf - )
and it seems working fine even if slower than cpio.
So my idea is to use tar.
Someone knows if tar is not suitable for this pourpose or some other reason to prefer cpio.
I avoided to mount directly the source file system on a RHEL4 machine because the GNU cpio does not recognize the SFU as a native UX file system and returns more errors.
thank you
Kind Regards
Romano
I need to replicate several directories of a NFS files system coming from a SFU NAS file server.
The destination machine is RHEL4.
I mounted both files systems (source and destination) on a HPUX 11i machine.
I tried to use cpio (as I'm used in the UX-UX transfer) like this:
find . -depth -print |cpio -pdum /aaa/xfer/
but it returns errors with sym links.
I tried to use tar like this (as suggested by the man page):
tar cvf - . |( cd /aaa/xfer/ ; tar tvf - )
and it seems working fine even if slower than cpio.
So my idea is to use tar.
Someone knows if tar is not suitable for this pourpose or some other reason to prefer cpio.
I avoided to mount directly the source file system on a RHEL4 machine because the GNU cpio does not recognize the SFU as a native UX file system and returns more errors.
thank you
Kind Regards
Romano
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2008 08:57 AM
03-26-2008 08:57 AM
Re: cpio vs tar
I'd expect "tar" to work fine, for some
values of "tar". The native HP-UX "tar"
program may have trouble with long names, for
example, so "pax" or GNU "tar" might be more
suitable.
> The destination machine is RHEL4.
Why drag the HP-UX system into the picture?
> [...] because the GNU cpio does not [...]
But if you use NFS on the Linux system, ...?
values of "tar". The native HP-UX "tar"
program may have trouble with long names, for
example, so "pax" or GNU "tar" might be more
suitable.
> The destination machine is RHEL4.
Why drag the HP-UX system into the picture?
> [...] because the GNU cpio does not [...]
But if you use NFS on the Linux system, ...?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2008 09:25 AM
03-26-2008 09:25 AM
Re: cpio vs tar
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP