I'm using robocopy in a batch script to back up all of my files onto an external drive, but I want to exclude any folders that contain (directly) a file called ".nosync", so I can avoid backing up several folders that have gigabytes of data that doesn't need to be backed up. I can't figure out how to do this though.
I tried:
robocopy <source> <dest> /mir /xd ".nosync\.."
But robocopy doesn't appear to follow the relative path. Is there a way to do this, or another utility I can use to mirror changed files to another drive?