Hi, your module has worked well for me on numerous sites. Thanks!
I have one site where users upload and crop their own images. The original uploaded files take up a LOT of room, and are not critical for the site operation. So I enhanced your module to allow me to enter wildcard file/path names as part of the exclude list. e.g. *crop_display*
This significantly reduced the size of the backup file.

I am attaching a patch for your consideration, as I believe this feature would be useful to others as well.

Comments

ronan’s picture

Status: Active » Postponed (maintainer needs more info)

Thanks for the patch! This is great functionality.

Did you write the filename code matching code? I want to make sure it came from a GPL-project (and get's credit if necessary) if you didn't write it yourself.

Thanks
Ronan

ronan’s picture

Found it: http://php.net/manual/en/function.fnmatch.php

I'm not sure on the legal status of using code posted to php.net, but I'd guess it doesn't pass the sniff-test for being hosted on d.o

Do we need the fallback? If the native function is supported in > php 4.3 that's probably good enough to just test for and error out if it's not there.