1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

untarring .tar.gz via ssh

Discussion in 'Site & Server Administration' started by Lever, Jan 15, 2008.

  1. #1
    I've got a .tar.gz folder in the root of a *nix server to which I have shell access and I'd like to

    a) zip up and backup an old folder that's elsewhere on the server and
    b) unzip my .tar.gz folder in its place

    Any help greatly appreciated :)
     
    Lever, Jan 15, 2008 IP
    agnivo007 and Halobitt like this.
  2. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #2
    agnivo007, Jan 15, 2008 IP
    Lever likes this.
  3. tonyrocks

    tonyrocks Active Member

    Messages:
    1,574
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    88
    #3
    You have have to un-gzip it first though:

    gzip -d archivename.tar.gz
     
    tonyrocks, Jan 15, 2008 IP
  4. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #4
    :p tar zxvf works just right for me (no ungzip needed)
     
    agnivo007, Jan 15, 2008 IP
  5. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #5
    You could scp in server and move the folder ?
     
    Camay123, Jan 15, 2008 IP
  6. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #6
    To tar a folder

    tar -czvf filename.tar.gz /path/to/folder/

    To tar a directory you are in with all files

    tar -czvf filename.tar.gz *

    To untar

    tar -zxvf filename.tar.gz

    That's it really.
     
    RectangleMan, Jan 16, 2008 IP
    Lever likes this.
  7. Lever

    Lever Deep Thought

    Messages:
    1,823
    Likes Received:
    94
    Best Answers:
    0
    Trophy Points:
    145
    #7
    @agnivo007 ~ thanks for that, lots of commands in that link for future ref for when I don't have my *nix book at hand and my interpreters head on ;)
    @tonyrocks ~ I didn't need to un-gzip in the end
    @Camay123 ~ I don't know what scp is and I couldn't use the mv command effectively (*nixnoob)
    @RectangleMan ~ Ah, perfect, thank you so much :)
     
    Lever, Jan 17, 2008 IP
  8. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #8

    http://winscp.net/eng/docs/lang:fr

    This is free scp software.

    Too many passwords?
    Is your help desk slammed by password reset calls?
    Read more about P-Synch® at P-Synch.com

    SCP stands for Secure Copy. It is a protocol, based on Ssh, which uses a simple Public Key Infrastructure and Encryption to allow users to securely transfer files between Unix Host System's

    It's a graphical file manager.
     
    Camay123, Jan 17, 2008 IP