[CMake] cmake generated Xcode projects are excluded from Time Machine
🐋 Jan Hegewald
jan.hegewald at awi.de
Tue Feb 28 12:57:00 EST 2017
Dear cmakers,
I just found a rather disturbing fact on my Mac which leads to entire Xcode projects and everything stored next to them to be excluded from the Time Machine backup:
➜ ~ cmake --version
cmake version 3.7.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
➜ ~ mkdir yadda
➜ ~ xattr yadda
➜ ~ cd yadda
➜ yadda cmake ../foo -G Xcode
...
➜ yadda xattr .
Now open the generated .xcodeproj in Xcode and cmd-B (Build).
➜ yadda xattr .
com.apple.XcodeGenerated
com.apple.metadata:com_apple_backup_excludeItem
Because of the com_apple_backup_excludeItem, the entire yadda directory will be excluded from Time Machine backups.
I often tweak the Xcode project as I work with it, change compiler settings, add targets etc. I definitely want this to be in my backup.
What do you think?
Regards,
Jan Hegewald, Climate Sciences, awi.de
More information about the CMake
mailing list