In Linux, zip multiple directories in one named zip file
LinuxZipLinux Problem Overview
I have the following directories, I want to zip up into the same zip file. Can someone provide the correct syntax?
ie. zipping the following directories:
- /home/users/jlefler/files
- /opt/software/reports/files
into a zip file called backup.zip.
Linux Solutions
Solution 1 - Linux
try
zip -r backup.zip /home/users/jlefler/files /opt/software/reports/files
you can add more directories at the end of the command