View Full Version : Excluding files by pattern

03-20-2009, 08:58 PM
When I am backing up, I would like to exclude files and folders that match certain patterns:

build (a folder name)

The script command Item Specification seems to require an absolute path from the root, though. Is there a way to specify a file pattern that will be matched wherever it occurs?

If not, could that feature be added? It would be very useful.

03-20-2009, 10:29 PM
No. Of course, you can use wildcards at any given folder level -- e.g.


03-21-2009, 12:18 AM
Ah... So if I create a rule file called "exclude backup files" that rejects

ignore *.bak
ignore */*.bak
ignore */*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.bak

and include it in a new copy script, then in that script I say to

copy Projects

Will the file Projects/MyProject/MyFile.txt.bak be included or excluded?

03-21-2009, 06:22 AM
It should be ignored.