Find the answer to your Linux question:
Results 1 to 3 of 3
I know what I'm trying to do may not be possible but I though why not confirm with the experts? Anyways so I have a host with CentOS 20 GB ...
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    34

    tar extract help

    I know what I'm trying to do may not be possible but I though why not confirm with the experts?

    Anyways so I have a host with CentOS 20 GB HD. I want to extract the backup file filename.tar.gz on the host. The file size is 14.9GB and hd is 20. Is there a way to extract the data on the same HD without having to download the file on my local pc and then extract and re-upload. Thanks.

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,097
    Does the machine, that has the tar.gz, offer any file service like samba or nfs?
    Then you would just have to mount the containing directory from the client.

    Other than that, it should be possible to use netcat for the job
    aka
    on the client
    Code:
    cd <EXTRACTDIRECTORY>
    nc -l 4000  |tar xzp
    on the server:
    Code:
    cat <TARFILE> |nc <CLIENTCOMPUTER> 4000
    Last edited by Irithori; 10-06-2010 at 08:31 PM.
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Oct 2010
    Posts
    6
    isn't it going to be larger than 20GB anyway once you've extracted?

Posting Permissions

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