| || |
7th June 2008, 01:16 PM #1
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 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:
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
7th June 2008, 01:34 PM #2
You don't have permissions to create files or folders in /var/www/
Try specifying an alternate location for the file e.g. /home/<site admin username>/html.tar.gz
This will create the file in the site admin's home directory.
7th June 2008, 02:06 PM #3
Its seems to create the gzip file ok its just empty though
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)