I'm trying to back up my Macbook Pro using this rysnc script to an external USB drive:
sudo rsync -avxE --progress / /Volumes/backupdrive/...
which I found here: https://serverfault.com/questions/269996/optimal-backup-to-swappable-hard-drive-with-rsync-on-osx
It keeps hanging on files in
/private/var/... though, and after seeing this post: What I can delete from /private/var/vm? I'm wondering if I need to back up
/private in the first place. I'm also curious about
/tmp, et cetera? Are there any other large directories that I can exclude from the backup safely?
As a followup, I notice when rsync hangs, that
mds_store is using a lot of CPU. Can I use
mdutil to disable indexing on my external drive to save space/time? I only use the drive for backups, although there are a lot of photos (tens of GB) backed up that might benefit from indexing (at least retaining thumbnails).