- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tar and cpio
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
11-17-2004 05:42 AM
11-17-2004 05:42 AM
tar and cpio
2500Gb directoryA(file system)
tar cvf - /directoryA |rsh ServerA dd of=/directoryB
Its work.
I need to do with the command cpio
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 06:12 AM
11-17-2004 06:12 AM
Re: tar and cpio
How about:
scp -rp /directoryA/* serverb:/directoryB
rcp -rp /directoryA/* serverb:/directoryB
# issue tar or cpio command as an ssh or rsh command.
scp/ssh are the secure replacements for rcp/rsh
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 06:23 AM
11-17-2004 06:23 AM
Re: tar and cpio
tar -cvf - . | remsh client "cd /directory ; tar -xvf -"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 06:43 AM
11-17-2004 06:43 AM
Re: tar and cpio
The command you use in your own example is wrong twice. 1. you do a rsh on you own machine, where you probably mean to start it on the other machine, and 2. dd will only stream, and not create a directory tree, leaving a tar archive in the *file* /directoryB
With cpio that would be
# find /directoryA | cpio -oc | remsh serverB cpio -iudcm
# tar cf - /directoryA | remsh serverB tar xf -
for 2500Gb NEVER use NFS :)
If you have a less reliable network, using dd as a buffer might help tar/cpio on the receiving side:
# find /directoryA | cpio -oc | remsh serverB dd \| cpio -iudcm
# tar cf - /directoryA | remsh serverB dd \| tar xf -
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 07:25 AM
11-17-2004 07:25 AM
Re: tar and cpio
what about
tar cf -
This will be quicker as it transfers the files zipped up... (as generally the network is the slow part of the transfer)
If you want to use ssh etc replace the remsh with th appropriate command.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 08:00 AM
11-17-2004 08:00 AM
Re: tar and cpio
log into serverB
cd /net/serverA/directoryA
Then,
find . -depth -print | cpio -pdm /directoryB/
Have fun!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 08:54 AM
11-17-2004 08:54 AM
Re: tar and cpio
tar cvf - /directoryA |rsh ServerA dd of=/directoryB/test.tar
is work
Steven E Protter scp and sftp , winscp ...
I know it, the idea is to do it with cpio
since I did with command tar
Yates H. Randall , is like my command:
tar -cvf - . | remsh client "cd /directory ; tar -xvf -"
tar cvf - /directoryA |rsh ServerA dd of=/directoryB
Procura:
find /directoryA | cpio -oc | remsh serverB cpio -iudcm
error:
find /diretoryA |cpio -oc |rsh serverB cpio -iudcm
11 blocks
Out of phase--get help
Perhaps the "-c" option shouldn't be used
find /directoryA | cpio -oc | remsh serverB dd \| cpio -iudcm
11 blocks
11+0 records in
11+0 records out
Out of phase--get help
Perhaps the "-c" option shouldn't be used
in serverB no exist directoryA , Its no work
Jim Butler : not NFS, not SAMBA,not Cifs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 09:38 AM
11-17-2004 09:38 AM
Re: tar and cpio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 05:18 PM
11-17-2004 05:18 PM
Re: tar and cpio
cpio -icdumv | remsh .. cpio -ocdumv
you might try using "B" for blocking.
# man cpio
states "B" option good for variable size records, writing to a tape device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 05:51 PM
11-17-2004 05:51 PM
Re: tar and cpio
# fbackup -f remote_system_name:/dev/rmt/0m -i file_name -v
example: fbackup -f hp_a:/dev/rmt/0m -i /var/spool/lp/ -v
To extract a cpio archive from a remote tape device:
# remsh square "dd if=/dev/rmt/0m bs=8k" | cpio -icvBdum
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 06:11 PM
11-17-2004 06:11 PM
Re: tar and cpio
Can you switch to GNU cpio?
# find /directoryA | gcpio -o --format=crc | remsh serverB dd \| gcpio -i -u -d -m
GNU's cpio does not need the -c options when using -i, because it detects the format itself!
If you would use GNU tar, you can compress on the fly
# gtar -czf - /directoryA | remsh serverB dd \| gtar -xzf -
And, again, do NOT use NFS (remote mounts) unless you want to last the transfer forever
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 06:14 PM
11-17-2004 06:14 PM
Re: tar and cpio
# find /directoryA | wc -l
shows you how many files and/or directories it contains
# du -s /directoryA
shows you how many blocks should be transfered
Enjoy. Have FUN! H.Merijn