tmutil - time machine utility¶
see also:
remove time machine exclusion¶
bulk remove time machine exclusions¶
example: for some reason, I had a long list of files excluded which were stored in my iCloud Drive, and I didn't know why. the files contained spaces as well and need to be treated differently.
- find all files which are excluded by time machine, I'm filtering the files which are stored in iCloud Drive (apple's great name for this folder is
com~apple~CloudDocs
) - change the
IFS
variable to not treat spaces as an input separator, but rather newlines - iterate through the files (check the output file before doing this) and remove the time machine exclusion entry for entry