1835225 Members
2192 Online
110078 Solutions
New Discussion

fbackup

 
SOLVED
Go to solution
YOGI_3
Frequent Advisor

fbackup

Hi all...


how to list backup files taken by fbackup utility...

Thanks,
Yogesh
There is never a wrong time to do the right things
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: fbackup

frecover -N


Pete

Pete
Steven E. Protter
Exalted Contributor
Solution

Re: fbackup

/usr/sbin/frecover -I /var/tmp/index -f /dev/rmt/0m -v ; /usr/bin/cat /var/tmp/index


I got this out of the sam command log.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
renarios
Trusted Contributor

Re: fbackup

Hi Yogesh,

At the fbackup command add -I path. This will create an index when backing up.
To do it afterwords, do an frecover -Nv
(no recovery) Prevent frecover from actually recovering any files onto disk, but read the backup as if it was, in fact, recovering the data from the backup, producing the same output that it would on a normal recovery. This option is useful for verifying backup media contents in terms of validity (block checksum errors are reported), and contents (a listing of files can be produced by using the -N and -v options together).

cheerio,

Renarios
Nothing is more successfull as failure
YOGI_3
Frequent Advisor

Re: fbackup

hi all..
steven's reply work perfectly..
but after stevens reply ...its asking following --->>

# /usr/sbin/frecover -I /var/tmp/index -f /dev/rmt/0mn -v ; /usr/bin/cat /var/tmp/index>
frecover(2105): did not find expected file marker
frecover(5419): checksum on volume header is incorrect.
frecover(5420): not an fbackup volume; magic value is incorrect
frecover(2105): did not find expected file marker
frecover(5412): Do you wish to try to salvage this volume? (^[yY]/^[nN]) n
frecover(5411): Do you wish to try a different volume? (^[yY]/^[nN])
------------------------------------
after this its showing the files that has backup ....
will it make some problem while restoring?
There is never a wrong time to do the right things
Steven E. Protter
Exalted Contributor

Re: fbackup

Your tape may not be an fbackup tape.

It may need to be rewound.

Try it once with sam and see what it finds.

If the tape is important, make sure the tape is write protected.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
YOGI_3
Frequent Advisor

Re: fbackup

******************************************
frecover(2105): did not find expected file marker
frecover(5419): checksum on volume header is incorrect.
frecover(5420): not an fbackup volume; magic value is incorrect
frecover(2105): did not find expected file marker
frecover(5412): Do you wish to try to salvage this volume? (^[yY]/^[nN]) n
frecover(5411): Do you wish to try a different volume? (^[yY]/^[nN])
******************************************
what this error exactly means...backup utility used is fbackup only....
will it give any problem with restiration.

Waitng for replis
There is never a wrong time to do the right things
Naveej.K.A
Honored Contributor

Re: fbackup

Yogesh,

I doubt that you have a defective tape/tape drive. That is what the error is pointing to. Are you sure you are using a fbackup tape.

Try rewinding the tape and then do an frecover.

Regards,
Naveej
practice makes a man perfect!!!
Deoncia Grayson_1
Honored Contributor

Re: fbackup

By the error you are receiving, its not fbackup tape... but you can try using the frecover command to recover a command and next time when it ask Do you want to salvage this tape... answer yes to check what it does.
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Bill Hassell
Honored Contributor

Re: fbackup

The index of all the files can always be read with the -I option as in:

frecover -I - -f /dev/rmt/what_ever

The -Nv option will take a VERY long to produce . The purpose of -N is to read the entire tape, check the special fbackup checksums and display the filenames. The -I option shows all the files that were selected for backup. -N will show the actual files backed up, usually identical unless someone removed a file during backup.

The error you are seeing is simple: the tape is not an fbackup tape. Whatever was written on the tape (perhaps by accident) has destroyed anything previously written by fbackup. You can try pax to read the tape and see if it has a tar or cpio backup.

It's really important to protect a backup tape once you start the backup. If the permissions for the tape drive are open (ie, 666) then anyone can write over your backup before you eject the tape. Only root should be allowed to write on a tape drive (600 permissions).


Bill Hassell, sysadmin