Re: using tar on localhost

From: David Magda (dmagda+trace050401_at_ee.ryerson.ca)
Date: 06/25/05

  • Next message: Nico Kadel-Garcia: "Re: scp with chroot"
    Date: Sat, 25 Jun 2005 16:33:57 -0400
    
    

    "Payal" <payalrathod@gmail.com> writes:

    > Hi,
    > Thanks you made it so simple.
    > With gz it does not work properly though.
    >
    > $ ssh <ip> tar cvzf - *.c > rem.tar.gz
    > $ tar tvzf rem.tar.gz
    > -rw-rw-r-- rp/rp 11 2005-02-27 23:48:35 1.c
    > -rw------- rp/rp 4269 2004-08-24 19:06:48 bint.c
    > -rw------- rp/rp 4680 2004-08-24 19:07:02 bint1.c
    > -rw------- rp/rp 2580 2004-08-24 19:07:18 bint2.c
    >
    > gzip: stdin: decompression OK, trailing garbage ignored
    > tar: Child returned status 2
    > tar: Error exit delayed from previous errors
    >
    > Any ideas why?

    The compression is only there to lower bandwidth. You can simply get
    rid of the 'z' option and transfer the files:

    ssh remote "tar cf - *.c" > somefile.tar

    -- 
    David Magda <dmagda at ee.ryerson.ca> 
    Because the innovator has for enemies all those who have done well under 
    the old conditions, and lukewarm defenders in those who may do well 
    under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI 
    

  • Next message: Nico Kadel-Garcia: "Re: scp with chroot"

    Relevant Pages

    • Re: VTL vs. Backup to Disk
      ... readers that can handle it. ... David Magda <dmagda at ee.ryerson.ca> ... Because the innovator has for enemies all those who have done well under ...
      (comp.arch.storage)
    • Re: How do you like SchilliX?
      ... David Magda <dmagda at ee.ryerson.ca> ... Because the innovator has for enemies all those who have done well under ...
      (comp.unix.solaris)
    • Re: Is 6.0 released?
      ... David Magda <dmagda at ee.ryerson.ca> ... Because the innovator has for enemies all those who have done well under ...
      (comp.unix.bsd.freebsd.misc)
    • Re: change csh to bash
      ... ('dash' I ... David Magda <dmagda at ee.ryerson.ca> ... Because the innovator has for enemies all those who have done well under ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Can an account be setup with OpenSSH sftp allowed but ssh login disabled?
      ... David Magda <dmagda at ee.ryerson.ca> ... Because the innovator has for enemies all those who have done well under ...
      (comp.unix.bsd.freebsd.misc)