Operating System - HP-UX
1823257 Members
3009 Online
109648 Solutions
New Discussion юеВ

I need to take a backup on HP-UX

 
Marwan Shantir
Occasional Contributor

I need to take a backup on HP-UX

Dear All,
I'm some how new to HP-UX not to UNIX and I'm in the process of backing up some directories that exceeds the tape capacity (tape capacity is 20-40 GB).
My question is, how can I tell the tape to continue backup if the first tape capacity finishes?
I mean, I have 28 GB folder, how can I take this to a two tapes?
Thanking yOu
Marwan Shantir
11 REPLIES 11
Keith Bryson
Honored Contributor

Re: I need to take a backup on HP-UX

Marwan

You can use fbackup (man fbackup). This will also allow you to specify more than one device file so that it will automatically move to another device if necessary (without prompting you to insert blank media).

All the best - Keith
Arse-cover at all costs
Jeff Schussele
Honored Contributor

Re: I need to take a backup on HP-UX

Hi Marwan,

Also remember that these tape drives perform HW compression so that 28GB directory is likely to fit on one tape unless, of course, it contains mainly tightly packed files already which is unlikely. Besdies fbackup will normally prompt for another tape anyway.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
V. Nyga
Honored Contributor

Re: I need to take a backup on HP-UX

Hi,

If you use a backup command (maybe native 'tar' or backup from SAM) it will tell you to insert a new tape. Then it continues after your response.

And how already told, you can use a tape configuration where files (if possible) will be compressed.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Ravi_8
Honored Contributor

Re: I need to take a backup on HP-UX

HI

fbackup will prompt for second tape if the first tape get filled.

never give up
Marwan Shantir
Occasional Contributor

Re: I need to take a backup on HP-UX

Dear All,
Thank you very much for the quick updates and answers.
note that I'm using the SAM to conduct the backup. can any one send me the correct command of backup (fbackup command)?
Thanking yOu
Marwan Shantir
Ravi_8
Honored Contributor

Re: I need to take a backup on HP-UX

#man fbackup

will explain you better
never give up
Cem Tugrul
Esteemed Contributor

Re: I need to take a backup on HP-UX

Hi Marwan,

KBRC00000197 [This document may be viewed by customers]
[This document has been certified]
Example backup/recover commands for fbackup, cpio, tar
Document Information Table
Example backup/recover commands for fbackup, cpio, tar
DocId: KBRC00000197 Updated: 1/3/00 8:52:22 AM

PROBLEM

The most frequently used commands for fbackup, cpio, tar.

RESOLUTION

(This document assumes the user's device file is /dev/rmt/0m.)

FBACKUP/FRECOVER

Things to remember about fbackup:

* fbackup MUST rewind the tape before beginning the backup and after
completing.
* a tape created with fbackup is only recoverable with frecover.
* a file listed in the index file (from option -rvNf) is not guaranteed
to be on the tape; this simply means that fbackup intended to back the
file up when it began the backup session.

Command Description

fbackup -vf /dev/rmt/0m -i / full system backup

fbackup -vf /dev/rmt/0m -i specifically include file/directory
/etc/hosts preceded by -i

fbackup -vf /dev/rmt/0m -i specifically include multiple
/etc/hosts -i /usr files/directories preceded by -i

fbackup -vf /dev/rmt/0m -e specifically exclude file/directory
/etc/hosts preceded by -e

fbackup -vf /dev/rmt/0m -g
graph_file_name backup from a graph file

frecover -xvf /dev/rmt/0m restore entire tape to originating
directory structure

restore entire tape to originating
frecover -xovf /dev/rmt/0m directory structure and overwrite any
existing files

cd /tmp restore entire tape to /tmp
frecover -xXvf /dev/rmt/0m (originating directory structure will
not be overwritten)

frecover -vf /dev/rmt/0m -I verify backup and read the index file
/tmp/index from the tape into a file called
/tmp/index

fbackup -vf /dev/rmt/0m 2>&1 log what is backed up, along with any
|tee /tmp/backup.log errors that occur

frecover -rNv -f /dev/rmt/0m 2>
/tmp/listing list of what is really on the tape

frecover -V /tmp/volume_headers
-f /dev/rmt/0m show volume headers on the tape

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Patrick Wallek
Honored Contributor

Re: I need to take a backup on HP-UX

If you are doing an Interactive Backup through SAM, then you are already using fbackup. When you do an interactive backup a window opens that shows the backups progress. Keep an eye on this window. If another tape is required fbackup will prompt you to insert a new tape. After you do that you must respoond appropriately to the question it asks for the backup to continue.

V. Nyga
Honored Contributor

Re: I need to take a backup on HP-UX

Hi,

if you use SAM, start it, choose 'Backup and Recovery' - 'Interactive Backup and Recovery' - then it should show a valid backup device. Then you can choose the directories you want to backup.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
ssudhir
Advisor

Re: I need to take a backup on HP-UX

Hi All ,

Correct me if i am wrong ?

There is a risk of complete data recovery. If you take the backup in multiple tape. If even one goes bad you cannot restore the complete data. In that case ..its better to take backup backup with respective of directoried/filesystem . Else you can use tape compression if the tape drive supports.

regards
Sudhir
Laughter is the best medicine
V. Nyga
Honored Contributor

Re: I need to take a backup on HP-UX

Yes, you're right.

You can test, to backup all in one command.
If one tape is enough, then ok.
If not, I would neverthless complete the backup. Then you can split it in more backups.

Nevertheless, you *can* restore single files from sam backup, but for a complete restore you need good tapes.

V.
*** Say 'Thanks' with Kudos ***