Question: How do I archive files on one drive to a zip file on another? I use a Mac running OSX Sierra. I compress a lot of files and right now, I compress to the same drive and then move the output via Finder to its intended destination. How do I cut out the extra step?
Archive files on one drive to a zip file on another
You can archive files on one drive to a zip file on another drive using the terminal.
zip -jq /Volumes/[DESTINATION DRIVE NAME]/[ZIP FILE NAME] /Volumes/[SOURCE DRIVE NAME]/[SOURCE DIRECTORY]/[SOURCE FILE NAME or *]
Sometimes in MacOS, the drive name can have spaces, be difficult to locate or contain many characters. Simplify the task by draging the source drive from either Finder or Desktop into the terminal window. Terminal will automatically enter the correct volume name.
So, you can type “zip -jq /Volumes/” and then drag the drive icon to your terminal window. For example, I Just did this with a volume called “NO NAME.” Notice how the OS handles spaces for you:
From there, you can add a forward slash (“/”) and then the name of your zip file.
Having MacOS challenges? The Bruce Tyson team can help. We provide personalized training as well as troubleshooting and maintenance support. Contact us today by sending an email to firstname.lastname@example.org.