Why sudo zip -o Creates an archive with a size significantly larger than the weight-to-archive in the current folder files and folders?

Good day,

I noticed such a thing:

In the current folder files and folders 270 mb


sudo zip -o www_latest.zip

It creates archive with size 840 mb

It's not very good. The idea of the archive should weigh a little less. than its contents, or at least not anymore.

But if I highlight with the mouse the files and create an archive from the context menu, it creates the file size 274 mb, which in General is not bad, but:

1) I would like to produce all operations from the command line
2) the second method does not back up the hidden files.

How to be? Can flags nedostavat?
July 12th 19 at 17:01
2 answers
July 12th 19 at 17:03
Do it humanly and not via zip:
tar-czf mybackup.tar.gz /path/to/folder/
And then forward this to his Secretary. We don't know what it's done. - Madge commented on July 12th 19 at 17:06
: hmm, the Secretary should not WinRar? - providenci_Treut commented on July 12th 19 at 17:09
: Anything can happen. And even then stupid questions, th for attached files. - Madge commented on July 12th 19 at 17:12
: it opens normally: no display nested tar archives. - providenci_Treut commented on July 12th 19 at 17:15
July 12th 19 at 17:05


sudo zip -o www_latest.zip

Really? That is, you do not specify WHAT to back up and are surprised by the results? :) You the contents of files compared? And that can be different you files pack...
Why sudo?
If the files are packaged are the ones that need, it is possible "symptoms" in the absence of compression of the archived files, set the option -Zd, so try -9

Find more questions by tags LinuxDebian