NCSA Home
Contact Us | Intranet | Search

MSS Tar


How can I restore a tar file from MSS into my current directory?

    From an NCSA production machine:
    msscmd "tar xf filename.tar"
    
    With SSH:
    ssh your_login@mss.ncsa.uiuc.edu "cat filename.tar" | tar xvf -
    

How can I save the contents of my current directory as a tar file on MSS?

    From an NCSA production machine:
    msscmd "tar cf filename.tar ."
    
    With SSH:
    tar -cvf - . | ssh your_login@mss.ncsa.uiuc.edu "cat - > filename.tar"
    

How can I extract one file from a tar file on MSS?

    From an NCSA production machine:
    msscmd 'get filename.tar "|tar xvf - fileToExtract"'
    
    Using FTP:
    ftp> get tarfile.tar"| tar xvf - fileToExtract"
    
    With SSH:
    ssh your_login@mss.ncsa.uiuc.edu "cat filename.tar" | tar xvf - fileToExtract
    

    Warning: The above commands assumes that fileToExtract is in the top level directory of the tar file. If fileToExtract was in the directory abc in the tar file filename.tar then prepend abc/ to fileToExtract. The local abc directory will automatically be created if it does not currently exit, and the commands will put fileToExtract in that directory.