1834208 Members
2271 Online
110066 Solutions
New Discussion

remote backup

 
SOLVED
Go to solution
peterchu
Super Advisor

remote backup

I have two host eg . hostA (192.168.0.1) , hostB (192.168.0.2) , hostA has the tape drive , how can I use "tar" function at host A remote backup the files at host B ? I know dd can do that , could suggest how to make it work ? thx.
6 REPLIES 6
Trond Haugen
Honored Contributor

Re: remote backup

You should be able to do something like:
hostB# tar cvf - / | remsh hostA dd of=/dev/rmt/0m
(You have to run tar on hostB and have remsh working.)
If you had used fbackup it would have supported remote tape devices.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Hoang Chi Cong_1
Honored Contributor

Re: remote backup

Hi

You can with the fbackup command.
See on the manpage.
For example:
backup to remote machine "hostA" which has a tape drive at /dev/rmt/0m)

# fbackup -f hostA:/dev/rmt/0m -v -i /tmp/test

Of course, you have to make sure that the name resolution between both servers and in .rhosts file.
Let's see on this link:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=352809

Best and regard,
***HAPPY NEW YEAR***
HoangChiCong
Looking for a special chance.......
Nguyen Anh Tien
Honored Contributor
Solution

Re: remote backup

I suggest you use NFS (Network File System).
On hostB you export file system you want to backup. On hostA you mount it on.
This is the guide you need:
http://docs.hp.com/en/B2355-90685/index.html
For the first time. you should do by using SAM.
I did like this many time and all were successful.
TIENNA
HP is simple
Eric Antunes
Honored Contributor

Re: remote backup

Hi peterchu,

The easy way to do this is with SAM from hostB:

#SAM -> Backup and Recovery -> Interactive Backup and Recovery -> Action -> Use Remote Backup Device -> Back Up Files Interactively... -> Specify Remote Backup Device... -> (Here you must enter the name of the remote server and the device file: /dev/rmt/0m).

But this will use fbackup command, not tar...

Best Regards,

Eric Antunes

Each and every day is a good day to learn.
Ravi_8
Honored Contributor

Re: remote backup

Hi

NFS mount the files to be backed up from hostB on host A

tar cvf

should do
never give up
TwoProc
Honored Contributor

Re: remote backup

I'd really say that you're way better off using Trond's suggestion. Backups via NFS are painfully slow in comparision to a remsh pipe via tar to your tape drive.

For a possible speed up boost - you can try
tar cvf - /sourcedir | compress | remsh hostA "uncompress | dd of=/dev/rmt/0m"

At times, this can be a faster variant of the same idea. Depends on what you're backing up and what the bottlenecks to the transaction are.

We are the people our parents warned us about --Jimmy Buffett