UnitedForums - UK Web Hosting Forum UnitedHosting Community Hosting Forums
Network and Server StatusCustomer SupportUK Web Hosting
UnitedHostingUnitedHosting Sitemap UK Hosting ForumUK Web HostingWeb Hosting ForumsUK Reseller HostingWeb Host CommunityUK Managed Dedicated ServersHosting Help and SupportUK Domain Name Registration

Go Back   UnitedForums.co.uk > UnitedHosting Community > Website Development & Scripting

Reply
 
Thread Tools Rate Thread Display Modes
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
Old 7th June 2008, 01:34 PM   #2 (permalink)
MrBen
Munky!
 
MrBen's Avatar
 
Join Date: Sep 2003
Location: nr Woking, England
Posts: 2,597
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.

Ben
__________________
Veterinary Practice Management System by SoftFooding
Internet Data Usage Calculator: Estimate your monthly bandwidth usage for your Internet connection.
MrBen is offline   Reply With Quote
Old 7th June 2008, 02:06 PM   #3 (permalink)
tenaki
Registered User
 
Join Date: Dec 2005
Location: Essex UK
Posts: 113
Its seems to create the gzip file ok its just empty though
tenaki is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 02:07 PM.

UK Web Hosting  |  UK Reseller Hosting  |  UK Dedicated Servers UnitedHosting  |  UnitedSupport  |  UnitedForums  |  SEO by vBSEO 3.0.0
Copyright © 1998-2008 United Communications Limited. All Rights Reserved. Registered in England and Wales 3651923 - VAT Reg No. 737662309