How can I zip/compress a symlink?

You can store symlinks as symlinks (as opposed to a copy of the file/directory they point to) using the –symlinks parameter of the standard zip. Assuming foo is a directory containing symlinks: zip –symlinks -r foo.zip foo/ Rar equivalent: rar a -ol foo.rar foo/ tar stores them as is by default. tar czpvf foo.tgz foo/ … Read more