Potresti salvare un elenco di proprietà come ~/Library/LaunchAgents/excludefinalcut.plist
:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnableGlobbing</key>
<true/> <!-- enable wildcard and tilde expansion for ProgramArguments -->
<key>Label</key>
<string>excludefinalcut</string>
<key>ProgramArguments</key>
<array>
<string>tmutil</string>
<string>addexclusion</string>
<string>~/Movies/Final Cut Events/*/Transcoded Media/Proxy Media</string>
</array>
<key>WatchPaths</key>
<array>
<string>~/Movies/Final Cut Events</string>
</array>
</dict>
</plist>
Quindi carica il plist eseguendo launchctl load ~/Library/LaunchAgents/excludefinalcut.plist
.
tmutil addexclusion
attribuisce ai file un attributo esteso com.apple.metadata:com_apple_backup_excludeItem
. sudo tmutil addexclusion -p
aggiunge i file al dizionario SkipPaths
in /Library/Preferences/com.apple.TimeMachine.plist
che viene modificato anche dalle Preferenze di Sistema.