Operating System - HP-UX
1834183 Members
2396 Online
110064 Solutions
New Discussion

Re: Fbackup Graph File Question...

 
Lee Harris_5
Valued Contributor

Fbackup Graph File Question...

Hi,

Just a quick question about fbackup graph files. I'd have tried it to see, but I don't have a server handy with a DAT drive and tape loaded at the moment so...

I want to in my backup include for example some files from /etc like /etc/passwd /etc/group /etc/ftpusers and so on, but I want to exclude the rest of the contents of that directory.

I'm wondering if there is a correct way or a proper order this should go into the graph file. Would this be correct for example...

e /etc
i /etc/passwd
i /etc/group
i /etc/ftpusers

Or would fbackup see that I've excluded /etc and therefore ignore the following three include entries?

Many thanks - Lee
4 REPLIES 4
Peter Godron
Honored Contributor

Re: Fbackup Graph File Question...

Lee,
from "man fbackup"
"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"

I read that to the reverse of your case, so it should work.
Peter Godron
Honored Contributor

Re: Fbackup Graph File Question...

Lee,
UPDATE
Have just tried it and :
"fbackup(1601): could not access -i/-e file /etc/ftpusers
fbackup(1421): no history is available for graph file /var/adm/fbackupfiles/graphs/euro_graph (below level 0)
fbackup(1004): session begins on Thu Oct 26 08:36:52 2006
fbackup(3205): WARNING: unable to read a volume header
fbackup(3024): writing volume 1 to the output file /dev/rmt/0m
1: / 4
2: /etc 12
3: /etc/group 1
4: /etc/passwd 5
fbackup(1005): run time: 35 seconds
fbackup(3055): total file blocks read for backup: 22
fbackup(3056): total blocks written to output file /dev/rmt/0m: 51
fbackup(1030): warnings encountered during backup"

So it certainly works! First error in my log only indicates that I don't have a /etc/ftpusers file.
Bill Hassell
Honored Contributor

Re: Fbackup Graph File Question...

You can test fbackup extensively by using an ordinary file rather than a real tape. Just like tar, fbackup will send it's output to a file if specified:

fbackup -v -f /tmp/test.fbackup -i /etc/vx

It turns out that you don't need to exclude a top level directory if you are just specifying specific files (like your example). Now in my example, /etc/vx contains several subdirectories so I could exclude a set of directories like this:

fbackup -v -f /tmp/test.fbackup -i /etc/vx -e /etc/vx/type

Note that you can also test frecover in the same way -- use a plain file rather than a tape. Test the -I and -V options for instance:

frecover -V - -f /tmp/test.fbackup
frecover -I - -f /tmp/test.fbackup


Bill Hassell, sysadmin
Peter Godron
Honored Contributor

Re: Fbackup Graph File Question...

Lee,
are you happy with the answers and is your problem resolved ?
If so , please see:
http://forums1.itrc.hp.com/service/forums/helptips.do?#22