Best Way to Copy Remote System's Partitions?

  • Follow


Hi Folks,

At the risk of repeating a FAQ, what is the best way to copy disk 
partitions from a remote HP-UX 10.20 system over a network to a similar 
system's hard disk?

I wanted to tar the directories and then copy the tar files, but there's 
not enough space for even a compressed tar file on the remote system.

The remote machine does not have a functioning tape drive, or I'd ask 
the operator to make a tar tape for me.

I need to preserve the owner/group/permissions during the copy.  I was 
wondering if something like rsh/rexec and tar would work for this purpose.

Sorry if this is FAQish, but I checked the comp.sys.hp.hpux faq and 
tried googling on this newsgroup unsuccessfully for a while before posting.

Thanks for any help!

    -dreq

0
Reply Derek 1/8/2004 10:17:01 PM

Derek Mark Edding (dreq@earthlink.net) wrote:
: Hi Folks,

: At the risk of repeating a FAQ, what is the best way to copy disk 
: partitions from a remote HP-UX 10.20 system over a network to a similar 
: system's hard disk?

: I wanted to tar the directories and then copy the tar files, but there's 
: not enough space for even a compressed tar file on the remote system.

: The remote machine does not have a functioning tape drive, or I'd ask 
: the operator to make a tar tape for me.

: I need to preserve the owner/group/permissions during the copy.  I was 
: wondering if something like rsh/rexec and tar would work for this purpose.

: Sorry if this is FAQish, but I checked the comp.sys.hp.hpux faq and 
: tried googling on this newsgroup unsuccessfully for a while before posting.

how about somthing along the lines of:
(running on 10.20 system)

!/usr/bin/ksh
remsh backup_system  'cd /somedirectory'
cd /somedirectory;tar cf - .|remsh backup_system \
   'cd /somedirectory && tar xbf -'

read the tar manpage, I think running as root preserves the permissions. 
--
Jim Hollenback
jholly@cup.hp.com
my opinion.
0
Reply jholly 1/9/2004 12:48:04 AM


1 Replies
423 Views

(page loaded in 0.075 seconds)

Similiar Articles:













7/22/2012 10:06:50 PM


Reply: