Operating System - HP-UX
1849592 Members
7136 Online
104044 Solutions
New Discussion

Re: I could not backup using extra argument

 
SOLVED
Go to solution
mehul_3
Regular Advisor

I could not backup using extra argument

hi
When I using started backup with fbackup command e.g fbackup -f /dev/rmt/0m -i /u01/gdbs /u02/gdbs /u03/gdbs. But as such this backup command won't allow to take backup of extra argument say /u02/gdbs and /u03/gdbs.
Could someone please suggest how to take backup with multiple argument with fbackup command.
5 REPLIES 5
RAC_1
Honored Contributor
Solution

Re: I could not backup using extra argument

Use as follows.

fbackup -f /dev/rmt/0m -i /u01/gdbs -i /u02/gdbs /u03/gdbs

Anil
There is no substitute to HARDWORK
Michael Schulte zur Sur
Honored Contributor

Re: I could not backup using extra argument

Hi,

-i path path specifies a tree to be included in the backup graph. There is no limit on how many times the -i option can be specified.

fbackup -f /dev/rmt/0m -i /u01/gdbs -i /u02/gdbs -i /u03/gdbs

greetings,

Michael
melvyn burnard
Honored Contributor

Re: I could not backup using extra argument

you have misse dout the additional -i options for the additional directory structures.
you could also write these directory paths into a simple text or "graph" file, and specify this file with the -g option for fbackup
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Steve Steel
Honored Contributor

Re: I could not backup using extra argument

Hi

The info over multiple -i commands is true and thus a solution

If your backup can vary see man fbackup

-g graph graph defines the graph file. The graph file is a text
file containing the list of file names of trees to be
included or excluded from the backup graph. These
trees are interpreted in the same manner as when they
are specified with the -i and -e options. Graph file
entries consist of a line beginning with either i or e,
followed by white space, and then the path name of a
tree. Lines not beginning with i or e are treated as
an error. There is no default graph file. For
example, to back up all of /usr except for the subtree
/usr/lib, a file could be created with the following
two records:

i /usr
e /usr/lib




If you use a fixed name graph file then you never need to change the script but only the graph file to alter your backups


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Franky_1
Respected Contributor

Re: I could not backup using extra argument

Hi Mehul,

you should write an additional "-i" for each inclusion

-i /u01/gdbs -i /u02/gdbs -i /u03/gdbs

Regards

Franky
Don't worry be happy