Operating System - HP-UX
1837341 Members
3448 Online
110116 Solutions
New Discussion

Specifying backup log name when using fbackup

 
SOLVED
Go to solution
Joe Robinson_1
Occasional Advisor

Specifying backup log name when using fbackup

I just noticed a small gremlin this morning when trying to recover a sql file for a user (ME: "You do know where the file was, right?" USER: "Sure...it was on your system..." Needless to say, I'd like to use the index to identify where the file should have been. Problem is, I have two DDS3 drives (1 internal, 1 external - full system on one, ORACLE on the other) and the backup both write their index to br_index.full. Since my Oracle backup ran last, it overwrote the full system backup. Is there a place to specify a name to the backup so that I can have two distinct log files for my backups?

Thanks in advance,

Joe Robinson
Sys Admin
USPFO for Oregon
Oregon Army National Guard
5 REPLIES 5
Abel Berger
Regular Advisor

Re: Specifying backup log name when using fbackup

Hi Joe,

You may create labels ( arquive with any descritions ) for each tape in
first volume, and write the data ever
in the second volume in the same tape.

I hope this helps.

Regards

Abel Berger
Keith Johnson
Valued Contributor

Re: Specifying backup log name when using fbackup

Yes, use the -I option for fbackup.

Take care.
No matter where you go...there you are.
Peggy Fong
Respected Contributor
Solution

Re: Specifying backup log name when using fbackup

Hi Joe
Are you using SAM?
If you use command line to do your fbackup then the "-I path" specifies the name of the index file.

Even though your index was overwritten did you know you can pull a new index file (complete and more accurate than the one created during backup - it's the actual index file of what actually got saved.

Put your tape in drive 0 or 1 or ?
frecover -f /dev/rmt/0m -I /tmp/yourindexfile
This will create the index in whatever path you supply to the -I option. So you can see if the file is on your tape or not.

Regards,
Peggy
Mark Vollmers
Esteemed Contributor

Re: Specifying backup log name when using fbackup

You could also just use a script to take the br_log and copy it to somewhere else. I do this to keep copies of weekly and monthly index logs for easy searching. I just set it up to run sometime after I know backup is done, and I have use the date command to append a date to the name.

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Shumi Begum
Advisor

Re: Specifying backup log name when using fbackup

The way I name different index file for different backup job. for instance if I do the full system backup then, I use like:
/etc/fbackup -f /dev/rmt/1m -0ug /var/adm/fbackupfiles/graphfile -I /tmp/index_full.`date +%a` > /tmp/error 2>&1

When using other backup such as oracle, I would name the index file as /tmp/ora_index to keep them separated.