I recently traded in my 2012 MacBook Pro. Beforehand I wanted to backup my personal files en masse just in case something slipped under the radar when I was rumaging through them for anything useful. Here’s how to zip a local directory to a remote location, which was super useful for neatly zipping my whole home directory to my NAS.
Given a directory
backup and a directory mounted at
ditto -c -k --sequesterRsrc --keepParent backup /Volumes/NAS/Backup\ 1/backup.zip
-V to print the current file being zipped (but note that will significantly slow down the process).