[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: commenting a file of exclusion patterns?



[ sending again to the whole list ]

On 8 Sep 2012, at 19:29, David Prager Branner wrote:

> Using the -X option, I am maintaining a list of patterns for files to be excluded. It works fine, but I'd like to be able to put comments in the file, too. Is there an established syntax for doing this?

What you could do instead is have the setting in your ~/.tarsnaprc file, where you can add comments if the line starts with '#'.

For example:

---
# Can be rebuilt, see http://jimmitchell.org/2008/02/20/rebuilding-the-mail-envelope-index/
exclude /Users/me/Library/Mail/V2/MailData/Envelope Index
exclude /Users/me/Library/Caches
# Can be rebuilt, see https://discussions.apple.com/thread/3253318?start=0&tstart=0
exclude /Users/me/Library/Preferences/SDMHelpData
exclude /Users/me/.Trash
---

Best wishes,
Steven