Tuesday 29 September 2009

Using searches to backup files

Did you know that Bonkey can backup only files which match a search? Should have read the help, shouldn't you?

See the help page on searches for more information.

4 comments:

Unknown said...

i'm not fluent in regex.. any way to get some examples? I'd love to have an exclude list, like every file that starts with a . for example.

Or a search example that says every file BUT the following...

Is that possible? Great program BTW, thanks.

bonkey said...

John,

You can find a tutorial on Java regex's here: http://java.sun.com/docs/books/tutorial/essential/regex/. It's quite short - you can skip the parts on how to use the classes.

Here's a regular expression that I think should get every file that doesn't start with a .: ^[^\.].*

bonkey said...

That will also exclude files that are in folders that start with ., I believe. Test it out.

Unknown said...

Thanks! That seems to work by finding all files that don't start with a . but does include the files within directories that start with a .

regex is beyond me, so I don't even know where to start to tell it to exclude the contents of directories that start with a . and files that start with a .

thanks for the help though...