Operating System - HP-UX
1847474 Members
2839 Online
110265 Solutions
New Discussion

Re: fbackup without rewind?

 
SOLVED
Go to solution
Mark Perry_1
Occasional Contributor

fbackup without rewind?

Can fbackup be used in such a way that it doesn't rewind the tape at the end or beginning of a run?

What I'm trying to do is run several fbackups one after another, writing to the same tape, so that the data from each run is stored in order, one after the other. So far, what has happened is that each run has overwritten the data from the previous run.

Thanks in anticipation

MP
7 REPLIES 7

Re: fbackup without rewind?

From the WARNINGS section of fbackup:

fbackup should not be used with no-rewind devices, for example,
/dev/rmt/0mn.


So I guess the answer is no, you can't do this...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Pete Randall
Outstanding Contributor

Re: fbackup without rewind?

It should work if you use the no rewind device file (i.e. /dev/rmt/0mn)

Good luck,
Pete

Pete
Pete Randall
Outstanding Contributor

Re: fbackup without rewind?

Sorry, I was unaware of that warning. Open mouth, insert foot.

Pete

Pete
James R. Ferguson
Acclaimed Contributor
Solution

Re: fbackup without rewind?

Hi Mark:

No, you can't. By design 'fbackup' starts by rewinding the tape.

Regards!

...JRF...
Joseph A Benaiah_1
Regular Advisor

Re: fbackup without rewind?

Mark,

As previously stated, HP do not support fbackup with no rewind devices.

However consider this use of fbackup:

fbackup -g GRAPHFILE -c CONFIGFILE -v -f - | gzip | dd of=/dev/rmt/0mn obs=32k

A combination of fbackup and dd will allow you to hold multiple fbackups on a tape using the no rewind device.

You could recover the data as follows:

dd if=/dev/rmt/0mn ibs=32k | gzcat | frecover -xvi PATH/FILENAME -f -

I have tried this and it works although it is completely UNSUPPORTED BY HP.

Cheers,

Joseph
Ian Dennison_1
Honored Contributor

Re: fbackup without rewind?

If the same server and data is to be backed up over several days and appended to the tape, perhaps you could use the Incremental feature of 'fbackup', which will mean each new Tape requires a full backup first, followed by the incrementals.

If the data to be backed up is all on one server and can be backed up at the same time, can you expand the Index File being used to 'fbackup'?

Share and Enjoy! Ian
Building a dumber user
Mark Perry_1
Occasional Contributor

Re: fbackup without rewind?

Thanks to you all for your responses. Much appreciated.

Cheers
MP