- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cpio or tar
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
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
08-16-2002 01:56 AM
08-16-2002 01:56 AM
From your experience which one will be faster? tar or cpio as shown below
tar -cf - .|(cd dstdir;tar -xpf )
find . | cpio -pudm dstdir
Regards
Rainer
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2002 02:01 AM
08-16-2002 02:01 AM
Re: cpio or tar
What about cp -R?
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2002 02:03 AM
08-16-2002 02:03 AM
Re: cpio or tar
I feel that tar is more fatser than cpio.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2002 02:06 AM
08-16-2002 02:06 AM
Re: cpio or tar
# cd .../src
# find . | cpio -pudlmv .../dest
is by far the fastest and safest way
Check:
# find .../src | wc -l
# find .../dest | wc -l
should be the same
Thank's Bill :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2002 02:06 AM
08-16-2002 02:06 AM
Re: cpio or tar
If the directories are within the same file system , this is even worse.
Personally I use cpio.
But if it's huge tranfer, I would backup to tape and restore to the new directory.
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2002 02:58 AM
08-16-2002 02:58 AM
Solutiondid only the following
cd /start_dir
find . -depth -print | cpio -pd /dest_dir
Threw it into a script (was replacing an array, and copied from /homexx to /newhomexx.
I found this to be efficient (make sure you do not use -v anywhere, and you will be fine.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2002 04:07 AM
08-16-2002 04:07 AM
Re: cpio or tar
MIRROR it!!!!
Break the mirror and kabang you have a COPY!!!!!!
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2002 04:13 AM
08-16-2002 04:13 AM
Re: cpio or tar
I used tar until Bill Hassell pointed me towards cpio -pudlmv. It is indeed much faster.
I prefer to omit the "v" option because of the time it takes to display filenames on the screen.
Darrell