Operating System - HP-UX
1826797 Members
2552 Online
109703 Solutions
New Discussion

Any way to exclude files from fbackup?

 
SOLVED
Go to solution
Tim Medford
Valued Contributor

Any way to exclude files from fbackup?

Does anyone have a trick for excluding files while using fbackup? Seems like the "e" option works only on directories.

Thanks
Tim
5 REPLIES 5
Mike Smith_33
Super Advisor

Re: Any way to exclude files from fbackup?

I use a graph file and put the excludes in there

fbackup -g filename

filename contents
i /oracledate
e /unwantedfile

the i includes the e excludes
Stefano Ferri
Frequent Advisor

Re: Any way to exclude files from fbackup?

Hi Tim,

if you have this situation

Directory /test
File in /test
test1
test2

If you use this command :

fbackup -f /tmp/mybck.bk -i /test -e /test/test1

You have in backup all files without test1

Good luck,

Stefano
Tim Medford
Valued Contributor

Re: Any way to exclude files from fbackup?

Thanks guys. I think I'm running into a problem because I'm trying to use a mask. It seems to ignore it, for example:

i /ora_data
e /ora_data/oradata/*.dbf
Bill Hassell
Honored Contributor
Solution

Re: Any way to exclude files from fbackup?

The * doesn't mean anything to fbackup. It's confusing because the shell will magically change * into matching filenames. But this doesn't work in fbackup. -e works on individual files or directories but they must be completely named.


Bill Hassell, sysadmin
Tim Medford
Valued Contributor

Re: Any way to exclude files from fbackup?

Thanks Bill.

I guess what I need to do is run a find command and dynamically create my graph file with the appropriately named "e" files each time.

That should work, just a bit more work than using a mask.

Thanks,
Tim