Hurtling through Space

Mac Tip: Zip to Remote Location

02 January 2020

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 /Volumes/NAS:

ditto -c -k --sequesterRsrc --keepParent backup /Volumes/NAS/Backup\ 1/backup.zip

Run with -V to print the current file being zipped (but note that will significantly slow down the process).

Source


All writings and opinions are my own and not the views of my employer.
All Rights Reserved, except for the parts enumerated below: