Results 1 to 4 of 4

Thread: extract tar to ssh server

  1. #1
    Join Date
    Dec 2012
    Beans
    5

    Question extract tar to ssh server

    Hi All,

    I have a Ubuntu desktop and a gentoo server, and I have a .tar file on the server I want to extract that to my desktop without setting up windows share (smb).

    I can't just scp the file to my desktop and extract it there coz there is not enough disk space and theres not enough disk space on my server to extract it on there and copy it to my desktop.

    Is there a way of extracting it to a ssh server or deleting as it extracts.

    Help would be appreciated,

    spiders

  2. #2
    Join Date
    Dec 2009
    Location
    germany
    Beans
    1,020
    Distro
    Ubuntu 12.04 Precise Pangolin

    Thumbs down Re: extract tar to ssh server

    Quote Originally Posted by spiders View Post
    Hi All,

    I have a Ubuntu desktop and a gentoo server, and I have a .tar file on the server I want to extract that to my desktop without setting up windows share (smb).

    I can't just scp the file to my desktop and extract it there coz there is not enough disk space and theres not enough disk space on my server to extract it on there and copy it to my desktop.

    Is there a way of extracting it to a ssh server or deleting as it extracts.

    Help would be appreciated,

    spiders
    hi
    no space on both boxes ??? means no extract any where.
    cheers
    "What is the robbing of a bank compared to the FOUNDING of a bank?" Berthold Brecht

  3. #3
    Join Date
    Sep 2006
    Beans
    7,019
    Distro
    Lubuntu Development Release

    Re: extract tar to ssh server

    As stated, if there is not enough room there is not enough room.

    If you do have enough room but want to extract to the desktop without first expanding it on the server, you could do it this way:

    Code:
    ssh remote.server.example.org cat foo.tgz | tar zxf -
    That would be run from the desktop system.

  4. #4
    Join Date
    Dec 2012
    Beans
    5

    Re: extract tar to ssh server

    Quote Originally Posted by rnerwein View Post
    hi
    no space on both boxes ??? means no extract any where.
    cheers
    there is no space for both the .tar and the extracted files, I want to have the .tar on my server and extract to my desktop

Tags for this Thread

Bookmarks

Posting Permissions

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