Operating System - HP-UX
1833995 Members
2890 Online
110063 Solutions
New Discussion

How to backup a filesystem using fbackup?

 
SOLVED
Go to solution
gino castoldi_4
Occasional Contributor

How to backup a filesystem using fbackup?

Hi,

Server: HP-UX, 11.11, OnlineJFS, Oracle

I want to backup (disk to disk) one filesystem
that contains Oracle data, binaries, etc.
I want to copy it from it's own filesystem (/u01) into another filesystem (/tmp).
fbackup looks like the best tool to use.
What would be the syntax for fbackup?

10 points to any good answer.
TIA, Gino

10 REPLIES 10
RAC_1
Honored Contributor
Solution

Re: How to backup a filesystem using fbackup?

man fbackup is the place to start at.

fbackup -i /u01 -v -f - | "cd /tmp;frecover -rv "

Anil
There is no substitute to HARDWORK
Sundar_7
Honored Contributor

Re: How to backup a filesystem using fbackup?

Anil,

Is this command working for u ?

sh: cd /tmp;frecover -rv : not found.

I am getting this error message.

-- Sundar
Learn What to do ,How to do and more importantly When to do ?
Sundar_7
Honored Contributor

Re: How to backup a filesystem using fbackup?


I could be wrong here but the above command line may not work.

frecover uses by default /dev/rmt/0m so you must specify -f - with frecover

Try this

fbackup -i /u01 -f - | (cd /tmp;frecover -Xrf -)
Learn What to do ,How to do and more importantly When to do ?
gino castoldi_4
Occasional Contributor

Re: How to backup a filesystem using fbackup?

Hi,

Sundar: You are right, the command string
does not work. I am using both of these commands strings instead.

fbackup -f /tmp/bckup.u01 -g /tmp/graph.u01 -v -I /tmp/index.fbackup -0

fbackup -0 -g /tmp/graph.u01 -v -f /tmp/fbackup.u01.save 2>&1 | tee /tmp/fbackup.log

10 points to any good answer.
TIA, Gino
RAC_1
Honored Contributor

Re: How to backup a filesystem using fbackup?

I have not used it very much. Just put it that came from my mind.

Just got this from frecover man page.

fbackup -i /u01 -f - | (cd /mnt; frecover -Xrf -)

Anil
There is no substitute to HARDWORK
Geoff Wild
Honored Contributor

Re: How to backup a filesystem using fbackup?

If you are doing filesystem to filesystem then why not use a tool that works the best?

BTW - don't use /tmp

vxdump -0 -f - -s 1000000 -b 16 /u01 | (cd /newfilesystem ; vxrestore rf -)

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
gino castoldi_4
Occasional Contributor

Re: How to backup a filesystem using fbackup?

Hi,

Geoff:
Question, why not use /tmp if it has enough free disk space? Thanks for the alternative
command to fbackup.

10 points to any good answer.
TIA, Gino
Geoff Wild
Honored Contributor

Re: How to backup a filesystem using fbackup?

/tmp - you don't want to accidently fill up /tmp - can cause issues....it is much better to have a separte file system to do what you want.

Also, the command I gave you uses vxdump/vxrestore so it doesn't create an archive like tar/fbackup - it creates a copy - so you wouldn't want that all mixed up with /tmp

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sundar_7
Honored Contributor

Re: How to backup a filesystem using fbackup?

Gino,

It is not preferred to use /tmp for couple of reasons

1) after all /tmp is supposed to be used for storing temporary files not the valuable data backup

2) if you have CLEAR_TMP set to 1 in /etc/rc.config.d/clean_tmps and reboot the system, boom -your backup is gone.

3) /tmp is critical for the functionality of number of commands/daemons and if you run out of space in /tmp, that might inadvertently cause problems.

See if you can use some other file system.

BTW is this your permanent signature â 10 points to any good answer. TIA, Ginoâ

S
Learn What to do ,How to do and more importantly When to do ?
gino castoldi_4
Occasional Contributor

Re: How to backup a filesystem using fbackup?

Hi,

Sundar:
>BTW is this your permanent signature?

Not really, but I do it to encourage everyone
(anyone) to help with some ideas, or answers.

Thank you again.
Gino