1834850 Members
1895 Online
110070 Solutions
New Discussion

copy filesystem

 
Satish Y
Trusted Contributor

copy filesystem

Hi,

We have two HP-UX 11.11 systems, which we are using one as standby for the other, say server A & B.
As a part of one activity, we had to copy one filesystem of 5.6 GB from server "A" to "B". We have exported filesystem on server "A" and mounted on server "B" using NFS.
Then, copied files on "B" using "cp -pR" from NFS mounted filesystem to local filesystem, but it took more than 7 hrs because of large number of files(675,000).

Is here any other method with which we can transfer the files faster?

Cheers...
Satish.
Difference between good and the best is only a little effort
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor

Re: copy filesystem

Hi Satish,

You could try to use a fbackup/frestore.

something like below command.

# fbackup -i /source -f - | remsh server "cd /copy ; frecover -Xrf -"

or cpio.

# cd /source
# find . | cpio -o | remsh server " cd copy ; cpio -idum "

Hope this helps,
Robert-Jan

Leif Halvarsson_2
Honored Contributor

Re: copy filesystem

Hi,

Do you use DataProtector or another backup tool ? A very fast method for copying large filesystems with lots of small files is to do a disk image backup/restore.
Geoff Wild
Honored Contributor

Re: copy filesystem

Fbackup or what I found to be faster - vxdump/vxrestore:

timex vxdump -0 -f - -s 1000000 -b 16 /oracle | (cd /mnt/oracle ; vxrestore rf -)


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.