Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

backup command

Status
Not open for further replies.

madra

MIS
Feb 12, 2003
95
GB
we currently use the backup command for a daily save

we check what filesystems are mounted, then proceed to back them all up.

Is there any way of checking what is actually on the tape ?

I can't see any options from backup or restore commands to list the tape.

Here's the backup line from the script:
find ${FS} -print -xdev | backup -ivqf ${TAPE_NR}

Here's the restore command:
restore -xvqs 4 -f/dev/rmt0.1 /tmp/thiswillrestore.dog


I ask, as I'm having problems restoring files !

thanks

madra
 
You can index the tape using the -T option as:

restore -Tvqs 4 -f/dev/rmt0.1

Output will go to the display unless you redirect it. Nothing will be restored to disk with the -T option.
 
psi07004 thanks sir.

managed to restore.

I had to name the file explicitly, instead of /tmp/file, had to use ./tmp/file

plus, the positioning I have in our documentation doesn't mention the header being at sequence 1, so we have to add 1 when searching

hope I explained that right

many thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top