1753797 Members
7436 Online
108805 Solutions
New Discussion юеВ

Re: fbackup 1401 issue

 
SOLVED
Go to solution
Chui Kock You_1
Frequent Advisor

fbackup 1401 issue

Hi,

I manually rerun the fbackup and found that the file not pick up with message show below.
How to use fbackup to backup files start with icm* (/backup/icm*) ?

#fbackup -v -f /dev/rmt/0m -i /backup/icm* -i /back/mdb/db1/icm*
fbackup(1401): extra argument: /backup/icmbk10 ignored
fbackup(1401): extra argument: /backup/icmbk11 ignored
fbackup(1401): extra argument: /backup/icmbk2 ignored
fbackup(1401): extra argument: /backup/icmbk3 ignored
fbackup(1401): extra argument: /backup/icmbk4 ignored
fbackup(1401): extra argument: /backup/icmbk5 ignored
fbackup(1401): extra argument: /backup/icmbk6 ignored
fbackup(1401): extra argument: /backup/icmbk7 ignored
fbackup(1401): extra argument: /backup/icmbk8 ignored
fbackup(1401): extra argument: /backup/icmbk9 ignored
fbackup(1401): extra argument: /backup/icmss ignored
fbackup(1401): extra argument: -i ignored
fbackup(1401): extra argument: /back/mdb/db1/icmbk12 ignored

Regards
Chui
11 REPLIES 11
Dennis Handly
Acclaimed Contributor
Solution

Re: fbackup 1401 issue

You can't use patterns with -i.
I suppose you could use awk to add those -i:
fbackup ... $(\ls /backup/icm* | awk '{print "-i ", $1}')
Chui Kock You_1
Frequent Advisor

Re: fbackup 1401 issue

Hi Dennis,

Q1) How's awk work with 2 -i directory ?
Q2) How to list the backup contents ?
Q3) To recover one file to a specific directory, is this the right command ? Let say file name is "icmbk12" #frecover -x -oF -i /back/mdb/db1/icmbk12

Regards
Chui
Dennis Handly
Acclaimed Contributor

Re: fbackup 1401 issue

>Q1) How's awk work with 2 -i directory?

For each file found by ls(1), awk will add a -i before it. In your case you have two patterns, so you can put both under ls:
fbackup ... $(\ls -d /backup/icm* /back/mdb/db1/icm* | awk '{print "-i ", $1}')

I added that -d above in case icm* are directories.
Chui Kock You_1
Frequent Advisor

Re: fbackup 1401 issue

Hi Dennis,

Thank for the help. I've try that on fbackup command. Is working fine now.
Do you have solution for question 2 & 3 as show below.
Q2. How to list the backup contents ?
Q3. To recover one file to a specific directory, is this the right command ? Let say file name is "icmbk12" frecover -x -oF -i /back/mdb/db1/icmbk1

Regards
Chui
James R. Ferguson
Acclaimed Contributor

Re: fbackup 1401 issue

Hi:

> Q2. How to list the backup contents ?

The 'fbackup' utility writes an index of files that will be backed up to the tape as an early step in its work. You can read this index with 'frecover' to produce a listing of files that _should_ be on the tape (unless they were removed from the system before 'fbackup' could actually copy them to tape or they were changing during the backup attempts and were marked "irrecoverable"). To do this, do:

# frecover -v -I /tmp/fbackup.idx -f /dev/rmt/0m

A more accurate, although lengthy way to discover an 'fbackup's tape contents is to read the tape *as if* you were going to recover its contents. To do this, but *not* recover, use the '-N' switch:

# frecover -Norv -f /dev/rmt/0m > /tmp/fbackup.files 2>&1

Checksum errors will be reported too, in this way.

> Q3. To recover one file to a specific directory, is this the right command ? Let say file name is "icmbk12" frecover -x -oF -i /back/mdb/db1/icmbk1

# cd /path
# frecover -mov -f /dev/rmt/0m -Xxi /back/mdb/db1/icmbk12

You could add '-F' if you want to restore the file without creating each of its paths. See the manpages for more information.

Regards!

...JRF...
Chui Kock You_1
Frequent Advisor

Re: fbackup 1401 issue

Hi James,

Thanks for the help.

Regards
Chui
OldSchool
Honored Contributor

Re: fbackup 1401 issue

one thing to be aware of is that "fbackup" is listed as "obsolete" and/or "depricated" at (at least) the latest release of hpux.

you might start planning on a replacement
Chui Kock You_1
Frequent Advisor

Re: fbackup 1401 issue

Hi Old School,

Do you any manaul explanation about the fbackup command gonna obsolete and or depricate.

Regards
Chui
James R. Ferguson
Acclaimed Contributor

Re: fbackup 1401 issue

Hi (again) Chui:

> Do you any manaul explanation about the fbackup command gonna obsolete and or depricate.

This is documented in the 11.31 manpages:

http://docs.hp.com/en/B2355-60130/fbackup.1M.html

See specifically the section titled "WARNINGS".

The targeted replacement is 'pax' which has been enhanced on 11.23 and 11.31 to offer _some_ of the features that made 'fbackup'/'frecover' so useful:

https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PAX-ENH

Regards!

...JRF...