How can I preserve permissions while compressing a folder using zip?I know how to preserve symlinks using --symlinks is there a similar option for permissions?
Preserving permissions while zipping
zip
info-zip (the program you probably are using) can save/restore permissions for Unix-like systems.It is mentioned for directories in the manual page:Dates, times and permissions of stored directories are not restored except under Unix. (On Windows NT and successors, timestamps are now restored.)File-permissions for read/write/execute are saved/restored.  But a quick check shows (zip 3.0) that setuid/setgid permissions are not preserved.The feature is not optional; zip/unzip simply do this when they are able.Further reading:Is ZIP archive capable of storing permissions?Can i store unix permissions in a zip file (built with apache ant)?