Hi, Can anyone please give me a url of an SSH script to compress a folder on server. Thanks in advance
It usually is bundled with newer distros, if not you can download it and or use a package manager. yum install zip unzip OR apt-get install zip Code (markup): I personally use tar/gzip though. tar -cf blah.tar folder/ gzip -9 blah.tar Code (markup):
I don't really see the benefit of zip. if you run tar czvf folder.tgz folder you get a compressed (gzip compressed) tar file without having to install anything
I'm partial to bzip2, as it tends to compress better than gzip. tar jcvf filename.tbz folder Code (markup): Note: it does take a bit longer to compress if there's a large amount of data.