Context:
I've been backing up my MacBook Pro with rysnc (now version 3.2.3, protocol version 31) to external hard drives formatted with NTFS. I'd like to continue with this procedure if possible.
Usually, for a given macOS version, I would use the StdExclusions file located at
/System/Library/CoreServices/backupd.bundle/Contents/Resources/StdExclusions.plist
as a starting point to decide what files/folders to exclude.
In Big Sur, this StdExclusions file doesn't seem to exist (at least not in its usual location).
Sub-questions:
In Big Sur, is there a new StdExclusions file or equivalent in another location?
Given the new file system (APFS with firmlinks/wormholes and things that are still mysterious to me) should I exclude
/System/Volumes/Data/Users
and copy/Users
or the other way around, or do I need to copy both?More generally, (and more importantly and to the point than sub-question 2) how should one approach the
/System/Volumes/Data
directory in context with the whole system when backing up?
Context detail:
Initially when I was using rsync version 2.6.9 protocol version 29, I didn't need to include the --ignore-errors
flag but with rsync 3 I found I had to add that flag, so my fundamental rsync command takes this form:
copyall() {
rsync -aAXPvh --modify-window=1 --partial-dir=../rsync_TMP_PARTIAL --delete-after --ignore-errors "$@"
}
BDL="--backup-dir=../DeletedFiles_$(date +\%Y-\%m-\%d)"
EXC="--exclude-from=/Location/of/my/modified/custom/exclusions/file"
copyall "${EXC}" --backup "${BDL}" "${SRC_BASE}/" "${DST_BASE}"
rsync -aEPvh
should instead bersync -aAXPvh
. And it looks like Paragon NTFS does support extended attributes. Does this cover all APFS metadata? I don't know. – zeroparallax Aug 07 '21 at 01:58/System/Volumes/Data
, the OS itself can‘t be restored anyway and is easily reinstalled from Recovery. – nohillside Aug 07 '21 at 05:23/.Spotlight-V100
would become/System/Volumes/Data/.Spotlight-V100
and similar for/.fseventsd
, etc. I wonder though if there are new files I should be excluding particular to Big Sur. That is, what should be the standard exclusions for Big Sur? – zeroparallax Aug 07 '21 at 05:42tmutil isexcluded
so, for exampletmutil isexcluded ~/Library/Caches/
yields[Excluded] /System/Volumes/Data/Users/michaelr/Library/Caches
– MichaelR Aug 07 '21 at 06:12/Users/<username>
folder, two of those being outside the/Users
folder. I expected to more of the files listed in the old StdExclusions file. I don't (yet) see a single same filename. – zeroparallax Aug 07 '21 at 07:45.exclusions.plist
file where a Time Machine backup is performed. It would be nice if someone could post an example of that. It seems that a full answer should refer to that as well as an mdfind meta-data query (as mentioned and linked above) and a reference to the contents of/Library/Preferences/com.apple.TimeMachine.plist
, as described here. Still may not be exhaustive. – zeroparallax Aug 10 '21 at 23:14