E
E
EVOSandru62016-04-29 08:20:29
linux
EVOSandru6, 2016-04-29 08:20:29

Why does sudo zip -o Create an archive several times larger than the weight of files and folders archived in the current folder?

Good afternoon,
I noticed this thing:
In the current folder of files and folders for 270 mb
I do:
sudo zip -o www_latest.zip
An archive of 840 mb is created
This is not very good. In theory, the archive should weigh a little less. than its content, or at least no more.
And if I select files with the mouse and create an archive from the context menu, then an archive of 274 mb is created, which is generally not bad, but:
1) I would like to perform all operations from the command line
2) the second method does not archive hidden files.
How to be? Maybe he didn't deliver the flags?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zooks, 2016-04-29
@EVOSandru6

Do it humanly, not through zip:
tar -czf mybackup.tar.gz /path/to/folder/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question