Operating System - HP-UX
1839266 Members
3823 Online
110137 Solutions
New Discussion

help with remote fbackup and error...

 
SOLVED
Go to solution
Thi Vu
Frequent Advisor

help with remote fbackup and error...

Hello everyone,
There are 2 problems with fbackup that I have been looking into for a few days but - I'm stump.

1. I have 4 machines (all HP 10.20) and want to have 1 fbackup script at machine 1 to do backup for the 4 machines from machine 1. I used this command but when I check the tape it contain data from machine 1 NOT machine 2,3 or 4 (I set up the graph and the config files for each machine in its' appropriate dir. (/var/adm/fbackupfiles)) :

fbackup -f machine2:/dev/rmt/tape -c config -u0g graph -d logfile -I index >>errlog 2>&1

Am I doing something wrong here? I thought of using -n but from my understanding it is use if you want to backup an mount file system ???


2. In my fbackup script I have it sents to me a notice of the time it took to do backup once it done, but for whatever reason if the user kill the fbackup half way through I still get the notice of the "complete" backup. Is there a way that I can write a function within this script to check with fbackup that if fbackup aborts half way through then a message is sent to my email as well ???

Your help is greatly appreciate. Thanks
Thi
2 REPLIES 2
Wieslaw Krajewski
Honored Contributor
Solution

Re: help with remote fbackup and error...

HI,

I am not sure if I've understood well your problem.
But assume that you want to ruin a backup script on machine 1, and the backup is to be done on the tape in drive on the same machine 1 (other combinations are also possible).

In your script you should run the following command:

remsh machine 2|3|4 fbackup -f machine1:/dev/rmt/0m -u0g graph_file -other_options

Of course you should configure system equivalence for your machnes to enable remsh command (.rhosts file).

To solve the problem from the second question you should test the return value of the fbackup command, i.e
$? shell varuiable. After normal completion of this command $? should be equal to 0.
In any other case $? have value non equal to 0.

Hope this help.
Permanent training makes master
Volker Borowski
Honored Contributor

Re: help with remote fbackup and error...

Hello,

I think fbackup does a rewind to be sure, that the volume header is at the beginning of the tape.
I think it is not possible to create more than one backup set on an fbackup tape (may be someone can correct me on this ?).

So I think with a script on host1:

remsh host2 fbackup -f host1:/dev/rmt/tape ...
remsh host3 fbackup -f host1:/dev/rmt/tape ...
remsh host4 fbackup -f host1:/dev/rmt/tape ...
fbackup -f /dev/rmt/tape ...

there should only be the saved data from host1 on the tape. You could check this with a new tape. The logfiles on the diffrent hosts should mention, how often the tapeheader is being rewritten. ( new, 1 , 2 , 3 )

You should nfsmount host2, host3 and host4 to host 1, and run a single fbackup crossing nfs or switch to a tar-backup invoked with a remote shell to the norewind device.
But you need to maintain the savesets manually !

Hope this helps
Volker