98

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,827
  • 4
  • 30
  • 62
user3299633
  • 2,971
  • 3
  • 24
  • 38

1 Answers1

206

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
  • 2,181
  • 1
  • 10
  • 4