PDA

View Full Version : Exclude folders based on their names


SanderP
01-20-2009, 02:59 PM
Is it possible (using wildcards) to exclude specific folders from a backup? For instance, all folders with a name that starts with "• " or something like that.
I know I can exclude files using this technique, but is seems as if this does not work for folders.

Thanks in advance!

dnanian
01-20-2009, 04:26 PM
It should certainly work just the same for folders, SanderP.

SanderP
01-21-2009, 04:39 AM
I'm sorry, I didn't explain myself properly.

It does of course work for specific folders. I can easily exclude a folder by adding something like "ignore Projects/Test/• images".

What I would like to do is exclude any folder that has a name that starts with "• ", no matter where it exists on a volume. Something like "ignore Projects/• *" or "ignore Projects/*/• *". That doesn't seem to be possible.

Thanks!

dnanian
01-21-2009, 08:25 AM
Correct: you can't specify "any folder, anywhere". The commands are specific to locations (but can be multi-level -- e.g. Projects/*/• * should work in all folders inside Projects, and all •-starting folders under there.).

SanderP
01-21-2009, 10:17 AM
That's strange, because that is exactly what I'm doing -- to no avail.

Does it matter if Project is a volume, and not a regular folder? I have tried both "ignore Projects/*/• *" and "ignore Volumes/Projects/*/• *".

If there is no way to get this to work, it may be a nice feature for the next version of SuperDuper!

Thanks for your help, Dave.

dnanian
01-21-2009, 10:41 AM
Yes, that matters. Your commands are rooted at the top of the selected volume, so if you use "Projects" at the start, it'll be /Volumes/Projects/Projects/*..., which isn't right. You want to use */• * in your case.

SanderP
01-21-2009, 10:51 AM
Ah, now I get it! That works like a charm.

Thanks a lot for your help.