Operating System - HP-UX
1846949 Members
4925 Online
110257 Solutions
New Discussion

Using fbackup/frecover command

 
Moekti
Occasional Contributor

Using fbackup/frecover command

I want to change my script that use tar command in advance to fbackup/frecover command due to efective reason. I still can not find a command for listing a contains of archive in a tape. In tar command, we can use t option.

Could any one help me please?

rgds,

Dewa Negara
It will be better to share both your knowledge and experiences
4 REPLIES 4
R Madhavan
Frequent Advisor

Re: Using fbackup/frecover command

use 1. frecover -I (if your tape drive is not 0m, use -f option to specify the drive).
2. cat or view the filename.

/*
Sandor Horvath_2
Valued Contributor

Re: Using fbackup/frecover command

Hi !

If You use fbackup with -I filename option then it create the index file to filename.
Just view filename.
Otherwise use frecover -I filename and it create the index from backup media.

regards, Saa
If no problem, don't fixed it.
Rodney Hills
Honored Contributor

Re: Using fbackup/frecover command

The -I option described before only reads the header file on the fbackup tape. Generally this listing is correct and is a quick way to see what the system TRIED to backup.
To actually read the contents of the whole tape use
frecover -n -v -f /dev/tape

This will read the tape and display the contents, unfortunately it does not include file size :(

-- Rod H
There be dragons...
Larry Basford
Regular Advisor

Re: Using fbackup/frecover command

Going to script the backup caution
fbackup always does a rewind
you can't append to a tape
Try vxbackup It is the fastest and does an interactive recover of files and you can easily restore to a different location.
/usr/sbin/vxdump -0 -f /dev/rmt/0mn -u / 2>>/var/adm/backup.log
/usr/sbin/vxdump -0 -f /dev/rmt/0mn -u /var 2>>/var/adm/backup.log
/usr/sbin/vxdump -0 -f /dev/rmt/0mn -u /usr 2>>/var/adm/backup.log

the -0mn is no rewind so it appends backups of the file systems
you can send a backup to a file if you like.
/usr/sbin/vxdump -0 -f /tmp/testbackup /usr

restore if /tmp/testbackup
vxrestore>
? for help or read the man page

if puts you in interactive mode
Desaster recovery? Right !