Home » Questions » Computers [ Ask a new question ]

How to exclude directories from Mozy custom backup sets using spotlight queries

How to exclude directories from Mozy custom backup sets using spotlight queries

I would like to create custom backup sets for Mozy which exclude certain directories. For example, I would like to backup my Itunes folder, but exclude all podcasts. I have created a backup set which searches in /Users/me/Music and used this query

Asked by: Guest | Views: 257
Total answers/comments: 1
bert [Entry]

"Answered here in StackOverflow (I'm quoting kperryua):

Quoth the documentation:

kMDItemPath

Complete path to the file. This value
of this attribute can be retrieved,
but can't be used in a query or to
sort search results.

Link

That means that the attribute kMDItemPath can only be used with a MDItem or NSMetadataItem to retrieve the path for an item already found. You cannot use it with an MDQuery or an NSMetadataQuery within the query predicate you specify to find files."