Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, I am trying to transfer a file

Status
Not open for further replies.

fissa

Technical User
Apr 10, 2002
9
AP
Hi,
I am trying to transfer a file system from server1 to server2. I had mount server2 onto server1:/mnt and do a
#ufsdump 0f - /dev/rdsk/c1t1d0s0|(cd /mnt;ufsrestore xf -);
after completed this command. I found that the file system at server2 ownership become nobody:nobody. Had sync up both server "passwd, shadow & group" file in /etc.

I had tried using the longer method, tar, then ftp then tar, no problems.
Please advice,
fissa
 
Why not try :-

# cd /source_directory
# tar -cvf - . | (cd /mnt; tar -xvfp - )

This will tar everything into standard in, and then extract it straight away from standard out.
Quite useful for moving things around and keeping ownership and permissions the same.
Careful that you don't have too many sub-directories though, there's a limit on tar.

Andy
 
hi andy,

it works, thanks.
yeah you are right, i encountered problems on some of the sub-directories (permission denies).
I guess, i need to use the longer method.

cheers.
 
u can try also

find /original -depth | cpio -pdmuv /copy

bandy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top