View Single Post
Old 7th June 2008, 01:16 PM   #1 (permalink)
tenaki
Registered User
 
Join Date: Dec 2005
Location: Essex UK
Posts: 113
Compress directory using ssh

I am following the instructions to compress an entire directory using ssh but I get an error Cannot open: Permission denied

GZIP Compression

Gzip allows you to upload or download your entire site in the form of a compressed .tar.gz file.

If you wanted to compress your entire sites html folder into a single file to download you can use the following commands:

cd /var/www/

tar -czf html.tar.gz html

Now your entire html folder will be placed into an archive called html.tar.gz in your /var/www/ folder, so you can FTP in and download that file.


I am logging in using putty then typing in the following

-bash-3.00$ cd /var/www/

-bash-3.00$ tar -czf html.tar.gz html

What am I doing wrong
tenaki is offline   Reply With Quote