Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2008
    Posts
    372

    need help for compression via ssh

    I would need some assistance for ssh codes to compress via tar,

    a file, a folder
    and the fastest mode to tar ssh command please, with an example,

  2. #2
    Join Date
    Aug 2009
    Location
    rules.php
    Posts
    111
    Please make yourself clear. If you are looking for compressed ssh connection, you can use "-C" option with ssh.

    Eg: ssh -C 192.168.0.112

  3. #3
    koolnhot, if you are connecting to your server via SSH and want to tar something remotely, use these commands:

    create file.tar and include file1 file2 file3 from the current folder:
    tar -cf file.tar file1 file2 file3

    create dir.tar and include the contents of dir1 and dir2 (recursive):
    tar -cvf dir.tar dir1 dir2

  4. #4
    Join Date
    Jun 2008
    Location
    India
    Posts
    130
    what you mean by that...are you looking for compress mode of ssh then ssh -C will work as supportpro suggested. otherwise
    tar -cvf zip will help you out

  5. #5
    Join Date
    Mar 2008
    Posts
    372
    hi
    I am looking to tar via ssh
    and not in compressed mode of ssh
    sorry for being un-clear earlier


    via ssh, I would like to tar dirs and files

  6. #6
    Join Date
    Jun 2008
    Location
    India
    Posts
    130
    okay the you can do tar -xvf dir.tar dir and then to compress with gzip if you would like to have
    g

    gzip dir.tar

    this will compress and easy and commonly used method. sometimes it seems t hat normal zip getting problems depends on diff versions.

  7. #7
    Join Date
    Jul 2009
    Posts
    240
    tar and gzip in 1

    $tar zcvf myfilez.tgz /dir/to/files/

  8. #8

Similar Threads

  1. db compression after compression and before compression size differs ??
    By koolnhot in forum Hosting Security and Technology
    Replies: 3
    Last Post: 04-24-2009, 08:02 AM
  2. how do i use IIS compression
    By 200369 in forum Web Hosting
    Replies: 2
    Last Post: 03-26-2005, 08:32 PM
  3. MP3 compression?
    By Merged in forum Web Hosting Lounge
    Replies: 6
    Last Post: 09-21-2004, 04:34 AM
  4. Compression
    By Kattilyn in forum Programming Discussion
    Replies: 8
    Last Post: 10-16-2003, 11:07 PM
  5. compression
    By clocker1996 in forum Hosting Security and Technology
    Replies: 1
    Last Post: 12-13-2001, 05:55 PM

Posting Permissions

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