87

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.

Florian
  • 1,677
  • 1
  • 29
  • 59
user3299633
  • 2,035
  • 2
  • 16
  • 35

1 Answers1

187

try

zip -r backup.zip /home/users/jlefler/files /opt/software/reports/files

you can add more directories at the end of the command

Kiril Ivanov
  • 1,991
  • 1
  • 7
  • 4