1828406 Members
3256 Online
109977 Solutions
New Discussion

backup of filesystems

 
Adrian_72
Advisor

backup of filesystems

May you help me.

I need to make a backup the next FS on DLT:

/ora9i
/siebel/undo
/siebel/temp
/siebel/system
/siebel/redo
/siebel/index
/siebel/data

what is the sintaxis for execute my backup in HP-UX 11.11 with a log file.

Thank you
7 REPLIES 7
Sundar_7
Honored Contributor

Re: backup of filesystems

# vi /root/graph
i /ora9i
i /siebel/undo
i /siebel/undo
i /siebel/temp
i /siebel/system
i /siebel/redo
i /siebel/index
i /siebel/data
#

# mkdir /var/adm/fbackupfiles

# fbackup -f /dev/rmt/1mn -0 -uv -g /root/graph -I /root/logfile


Learn What to do ,How to do and more importantly When to do ?
Michael Tully
Honored Contributor

Re: backup of filesystems

Well you could fbackup and create a graph file with the contents like this:
# vi /tmp/graph

i /ora9i
i /siebel/undo
i /siebel/temp
i /siebel/system
i /siebel/redo
i /siebel/index
i /siebel/data
Then run these commands to create the archive to tape and read it back. Substitute the ?m to your tape device.
# fbackup -g /tmp/graph -f /dev/rmt/?m
# frecover -I /tmp/index -f /dev/rmt/?m



Anyone for a Mutiny ?
Adrian_72
Advisor

Re: backup of filesystems

Hi Sundar;

Thank you for your help me.

how I can to check what is the tape available for my backup?

excuse me and what is the comand for the restore.
Sundar_7
Honored Contributor

Re: backup of filesystems

# ioscan -fnC tape

This will tell you the tape drives installed in the system.

frecover is the command to restore from the backup

# frecover -f /dev/rmt/0mn -rvF -i /ora9i

The above command will restore /ora9i from the backup tape /dev/rmt/0mn.
Learn What to do ,How to do and more importantly When to do ?
Adrian_72
Advisor

Re: backup of filesystems

Sundar;

I execute the command and recieve the next:

# ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/0/1/0.0.0 stape CLAIMED DEVICE Quantum DLT4000
/dev/rmt/0m /dev/rmt/c0t0d0BESTn
/dev/rmt/0mb /dev/rmt/c0t0d0BESTnb
/dev/rmt/0mn /dev/rmt/c0t0d0DDS
/dev/rmt/0mnb /dev/rmt/c0t0d0DDSb
/dev/rmt/c0t0d0BEST /dev/rmt/c0t0d0DDSn
/dev/rmt/c0t0d0BESTb /dev/rmt/c0t0d0DDSnb


I don't Know what is the device for execute my backup; I check the tape device and is a DLT 4000 Model for 8 tapes but my question is What dev is available or what is the characteristics of all /dev/rmt/xxxxx
Sundar_7
Honored Contributor

Re: backup of filesystems

execute lssf command against the device files. that will tell you the characteristics of the /dev/rmt/* files.

man 7 mt for more details.

You can use /dev/rmt/0m.
Learn What to do ,How to do and more importantly When to do ?
A. Clay Stephenson
Acclaimed Contributor

Re: backup of filesystems

Because I see that Oracle is involved, you should note that you can't simply backup a running database without first putting the database in backup mode or shutting it down. RMAN is built to do this.

I would also suggest a small change to your backup graph files. Rather than using absolute paths, e.g i/ora9i, I would change to relative paths e.g. i./ora9i BUT cd to / before running fbackup. This simply makes restoring to other locations easier.
If it ain't broke, I can fix that.