1849262 Members
6463 Online
104042 Solutions
New Discussion

Re: Help on FBACKUP

 
Suresh M V
New Member

Help on FBACKUP

I have HPUx11.1 system.I am not very good in unix.I need to take monthly full backup on two filestem home1 and home2.can i use like this
#fbackup -f /dev/rmt/0mn –0g /var/group
SUPERUSER: /var > more group
i /home1
i /home2
does this will work.and if i need to reocver one file fr this filesystem can i ??? pls help
7 REPLIES 7
Jeeshan
Honored Contributor

Re: Help on FBACKUP

# fbackup â v â g /var/group â f /dev/rmt/0m

this is enough.
a warrior never quits
Shrikant Lavhate
Esteemed Contributor

Re: Help on FBACKUP

Yea, It will work. If you want to generate index file then you can add -I to generate index file. Index file lists all files included in backup. Useful for crosscheck.

You can use frecover to recover needed file from backup.
#man frecover

-=ShRi=-
Will it remain a personal, if I broadcast it here!
Rasheed Tamton
Honored Contributor

Re: Help on FBACKUP

It would work. You could do fine tune little bit more:

/usr/sbin/fbackup -f /dev/rmt/0m -g /var/adm/group -I /home/suresh/fbackup.out -V /home/suresh/fbackup.out

(-I would produce an Index file of all the files backed up)
(-V would produce the volume header)

If you want manually without using the group file:
fbackup -f /dev/rmt/0m -v -I /home/suresh/fbackup.out -V /home/suresh/facku
p.vol -i /home1 /home2

(-v verbose; the results appear on the screen as well as makes the index -I)

If on cron, I would create a dir called fbackupfiles (as standard) and move the group file as below:

/usr/sbin/fbackup -f /dev/rmt/0m -g /var/adm/fbackupfiles/group -I /home/suresh/fbackup.out -V /home/suresh/fbackup.out 2>&1
YAQUB_1
Respected Contributor

Re: Help on FBACKUP

Hi,

To Store:
=========
# fbackup -f /dev/rmt/0m -i /home1
# fbackup -f /dev/rmt/0m -i /home2

# tar cvf /dev/rmt/0m /home1
# tar cvf /dev/rmt/0m /home2

To Recovery:
============

# frecover -x -i /home1 -f /dev/rmt/0m
# frecover -x -i /home2 -f /dev/rmt/0m

# tar xv /dev/rmt/0m /home1
# tar xv /dev/rmt/0m /home2

BR/
Yaqub

YAQUB_1
Respected Contributor

Re: Help on FBACKUP

Hi,

U can check also below URL link:-

http://docs.hp.com/en/B2355-90672/ch09s08.html

BR/
Yaqub
Suresh M V
New Member

Re: Help on FBACKUP

Thanks a lot for all of your help.I ma basically a Cisco/WIndows professionl.But the replys I got from this group so facinating.
I need one more help.I sussfully backup using fbackup two filsystem (home1,home2).
SUppose I want to restore only one file from the tape how it is using frecover??
Rasheed Tamton
Honored Contributor

Re: Help on FBACKUP

frecover -I /tmp/fbackuplist -f /dev/rmt/0mn
(it would produce a list (index) of files backed up on the tape using fbackup)
grep filename /tmp/fbackuplist
(filename is the file you want to restore from the tape - it is just to know the path of the file)

cd /var/tmp (the destinaton dir you want to restore the file from the tape)

frecover -vXxi filename -f /dev/rmt/0mn

Here you are doing a relative recovery to another dir. So you have to give the correct path you get from the index file

e.g,
frecover -vXxi ./filename -f /dev/rmt/0mn

After you recover it and satisfied with the file, you can copy or move it to the dir you want.

rgds.