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).
@misc{Pittman20201M, author = {Pittman, Cameron}, title = {Mac tip: zip to remote location}, journal = {Hurtling through Space}, url = {}, year = {2020}, month = {January}, accessed = {Oct 17, 2022} }