1830207 Members
1609 Online
109999 Solutions
New Discussion

fbackup

 
SOLVED
Go to solution
Ron Irving
Trusted Contributor

fbackup

Howdy all

I wish to back up some data in a particular filesystem. Here's the thing: There are some files, (quite a few,) that I wish to exclude. My question: How can I go about excluding these files, which are distiguished by number, from my backup in my graph file? Can I use wildcards, such as:

i /dir
e /dir/jrn.199*

Will that exclude all the files named jrn.1997, and jrn.1998?

Your experience and patience are greatly appreciated. I bow to the greater Gods.

Ron Irving
Should have been an astronaut.
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor
Solution

Re: fbackup

Hi Ron:

Sorry, wildcards can't be used in 'fbackup' graphs. However, you can mix (i)nclude and (e)xclude statements. For instance, you could do this:

i /tmp
e /tmp/mything
e /tmp/thistoo

Another way to circumvent the problem is to dynamically build your graph. Generate the list of files and directories you want (don't want) with filters, redirect it into a file and add appropriate 'i' and 'e' specifiers.

Regards!

...JRF...
A. Clay Stephenson
Acclaimed Contributor

Re: fbackup

Hi Ron,

Sorry fbackup's graph files don't know nothing about wildcards. However, you can using a script, build a graph file 'on the fly' to explicitly exclude files found via ls or find.

Clay
If it ain't broke, I can fix that.