Results 1 to 5 of 5
  1. #1
    Winston Douglas Guest

    Answered: tar gzip of datafiles

    How can I create a tar zip file without creating an intermediate file(s) ?. I need to do this to create a quick backup to disk but I do not have the disk space to tar the files to a file and then compress the tar file or visa versa.

    Thanks.

  2. Best Answer
    Posted by Steve Walker

    "
    How can I create a tar zip file without creating an intermediate file(s) ?. I need to do this to create a quick backup to disk but I do not have the disk space to tar the files to a file and then compress the tar file or visa versa.
    tar -cvf - <files> | gzip -c > backup.tar.gz"


  3. #2
    Steve Walker Guest
    How can I create a tar zip file without creating an intermediate file(s) ?. I need to do this to create a quick backup to disk but I do not have the disk space to tar the files to a file and then compress the tar file or visa versa.
    tar -cvf - <files> | gzip -c > backup.tar.gz

  4. #3
    Winston Douglas Guest
    tar -cvf - <files> | gzip -c > backup.tar.gz
    Thanks a lot !

    I am assuming

    gunzip backup.tar.gz | tar -zvf -
    Will layout the files again ?

    Thanks again

  5. #4
    andrew_webby at ho Guest
    gunzip -c backup.tar.gz | tar -xvf -

    "Winston Douglas" <whdouglas@home.com> wrote in message
    news:3ADED018.29B22C5C@home.com...
    [color={usenetquotecolor}]> Thanks a lot ![/color]
    [color={usenetquotecolor}]>[/color]
    [color={usenetquotecolor}]> I am assuming[/color]
    [color={usenetquotecolor}]>[/color]
    [color={usenetquotecolor}]> gunzip backup.tar.gz | tar -zvf -[/color]
    [color={usenetquotecolor}]>[/color]
    [color={usenetquotecolor}]> Will layout the files again ?[/color]
    [color={usenetquotecolor}]>[/color]
    [color={usenetquotecolor}]> Thanks again[/color]

  6. #5
    Join Date
    Jun 2001
    Location
    Mexico
    Posts
    1
    Thanks a lot !

    I am assuming

    gunzip backup.tar.gz | tar -zvf -
    Will layout the files again ?

    Thanks again
    with GNU tar you can use

    tar -xzvf backup.tar.gz

    and that will do the tick.

    regards,
    esv

Posting Permissions

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