Operating System - HP-UX
1834379 Members
2263 Online
110066 Solutions
New Discussion

How to copy a files-system to other server without recurring to tapes?

 
FTSE SysAdmin
Frequent Advisor

How to copy a files-system to other server without recurring to tapes?

Hi

I hope that someone may help me with this one :)

How to copy a files-system to other server without recurring to tapes?

I used to use the following command line to copy files from one server to other. However I've found that cpio (like tar) don't deal with files sized over 2Gb

remsh SERVER "cd /path; find . -depth -prune -print| cpio -oc"| cpio -icdu

Frankly I'm not familiar enough with fbackup command so I don't know how to make it work and I'm not aware of other command that my solve my problem.

Many thanks
Miguel Ribeiro
9 REPLIES 9
FTSE SysAdmin
Frequent Advisor

Re: How to copy a files-system to other server without recurring to tapes?

oops :)

I forgot that rcp -pr does that :)

Miguel Ribeiro
FTSE SysAdmin
Frequent Advisor

Re: How to copy a files-system to other server without recurring to tapes?

rcp -pr covers the 2Gb file issue but mixup all file permissions :(
Miguel Ribeiro
Pete Randall
Outstanding Contributor

Re: How to copy a files-system to other server without recurring to tapes?

I would think that "rcp -pr" should do exactly what you want, unless the file already exists at the destination. Do you still have files in the destination from the failed cpio try?


Pete

Pete
FTSE SysAdmin
Frequent Advisor

Re: How to copy a files-system to other server without recurring to tapes?

no the destination is a cleaned FS

I've noticed that using rcp -pr solved the issue with file size over 2Gb however I've lost all file/directory permissions therefore the "-p" that should preserve permissions and owners isn't working. So rcp for me is no more an option unfortunatly

Miguel Ribeiro
Alexander M. Ermes
Honored Contributor

Re: How to copy a files-system to other server without recurring to tapes?

Hi there.
Did you actiavte the LARGE FILE OPTION on the target file system ?
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Thayanidhi
Honored Contributor

Re: How to copy a files-system to other server without recurring to tapes?

You can use tar with remsh for this purpose.
Tar has initially 2GB limitation.
Now, there is patch available to support upto 8GB file size. you must apply the tar patch in both systems. Tar will retain the permision and ownership.

TT
Attitude (not aptitude) determines altitude.
FTSE SysAdmin
Frequent Advisor

Re: How to copy a files-system to other server without recurring to tapes?

yes all FS have largefiles flag activated. At FS level isn't an issue

Majority of the files that I'd need to copy from that FS go from 3Gb to 12Gb

Would be possible to use fbackup/frecover on the same way like I used cpio?
Miguel Ribeiro
Jeff Schussele
Honored Contributor

Re: How to copy a files-system to other server without recurring to tapes?

Hi,

rcp -pr will work correctly for ownership & perms if & only if the usernames & userIDs are identical on both systems.
Maybe you need to align them before the copy.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Steven E. Protter
Exalted Contributor

Re: How to copy a files-system to other server without recurring to tapes?

fbackup/frecover have an interactive interface via sam that will enable you to backup and move files bigger than 2 GB

It will also help you become familiar with those two useful tools.

Both can be scripted as you gain experience and/or poke around itrc

Your ratio of point assignment to questions leads me to request you read this document as well.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=140137

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com