1834001 Members
1679 Online
110063 Solutions
New Discussion

Backup information

 
Filosofo
Regular Advisor

Backup information

Hello,
I have a server with hp-ux 11i with 2 filesystem mounted.
fs1 30 Gb free 230 Mb
fs2 5 Gb free 50 Mb

I must copy all the contained of this fs in to another server with like logical volume configurazion.
I can't use Tape because the servers are't in the same place.

I think to use rcp, there is better solution?
If I use rcp to move 30 Gb How much time need to complete the operation?

Thanks

Filo
Sistem engeneer expert
8 REPLIES 8
Donny Jekels
Respected Contributor

Re: Backup information

Filo,

I would tar up the entire filesystem.

tar -cvf myfs.tar /mountpoint

then use ftp instead of rcp. rcp might croak with such a large file.

of course you are aware you need to do this on a filesytem that can hold the tar file.

one way to accomplish this is to use NFS to mount another fs on anohter machine with space.

peace
Donny
"Vision, is the art of seeing the invisible"
Paula J Frazer-Campbell
Honored Contributor

Re: Backup information

Hi

Time will depend upon the speed of the connection and how much other traffic there is on it.

Can you gzip -9 the files before you do the rcp?

To calculate the time use a test file of Say 100 Meg copy and time it and the multiply up.

This will only give you an estimate for the copy.

Pqaula
If you can spell SysAdmin then you is one - anon
Donny Jekels
Respected Contributor

Re: Backup information

ah! here in lies the key.

gzip -9 is max compression. however gzip can't traverse through directories on its own. unless you write a traverse script and hope not to miss any files.

you could use gzip on top of tar. which wil leave you with a file myfs.tar.gz

remember using ftp for both .tar or .gz files to use binary mode (bin for short)
"Vision, is the art of seeing the invisible"
Geoff Wild
Honored Contributor

Re: Backup information

Tar 'em up and gzip them.

rcp will be faster then ftp....

We had to copy a database (50 gb) over a WAn link - compressed, all the files were down to 13 GB - and rcp was great....

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.
Donny Jekels
Respected Contributor

Re: Backup information

one more thing, if you use a NFS mount point on another server. then you don't have to ftp or rcp. the file is allready on another server.

if you need to restore, just mount the volume again and untar the tarball

gzip -d mytar.tar.gz
tar -xvf myfs.tar

or

gzip -d mytar.gz | tar -xvf
"Vision, is the art of seeing the invisible"
Steve Steel
Honored Contributor

Re: Backup information

Hi

You can backup or recover to a tape on another machine like this

Remote backup on a local DAT/DSS tape drive.

In case you would like to make a backup from a remote system to a local
DAT/DSS tape drive, you can use this comand:

remsh remote_name "/etc/fbackup -f local_name:/dev/rmt/0m -i . -0 -v"

remote_name= system that runs the backup.
local_name = system that owns the DAT/DSS drive.
The options can be set at discretion.

If you are logged-in on the other system, then:
/etc/fbackup -f remote_name:/dev/rmt/0m -i . -0 -v



frecover then Restore of backup over network.

Restore from a remote DAT/DDS drive

/etc/frecover -xi/directory -f remote_name:/dev/rmt/0m

Remote restore with local DAT/DDS drive

remsh remote_name " /etc/frecover -xi/directory -f local_name:/dev/rmt/0m"

Thus you can use the tape on either box from 1 place and tune fbackup and frecover for speed


steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Filosofo
Regular Advisor

Re: Backup information

Hello,
I have decided to use rcp:
rcp -pr optinon preserv the permission's file, but I can preserve the owner of files with rcp?

Thanks

Filo

Sistem engeneer expert
Umapathy S
Honored Contributor

Re: Backup information

Adding to these suggestions, if the file is too big, you can split the files into numerous pieces and ftp/rcp them to the machine.

Write a script to do this. This will reduce the time for transfer. If something goes wrong in between, there wont be any need to transfer the whole file again.

HTH
Umapathy
Arise Awake and Stop NOT till the goal is Reached!