Results 1 to 3 of 3
  1. #1
    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

  2. #2
    Munky! MrBen's Avatar
    Join Date
    Sep 2003
    Location
    nr Woking, England
    Posts
    2,646
    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.

  3. #3
    Registered User
    Join Date
    Dec 2005
    Location
    Essex UK
    Posts
    113
    Its seems to create the gzip file ok its just empty though

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •