Re: using tar on localhost
From: David Magda (dmagda+trace050401_at_ee.ryerson.ca)
Date: 06/25/05
- Previous message: David Magda: "Re: scp with chroot"
- In reply to: Payal: "Re: using tar on localhost"
- Next in thread: Hrvoje Spoljar: "Re: using tar on localhost"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Previous message: David Magda: "Re: scp with chroot"
- In reply to: Payal: "Re: using tar on localhost"
- Next in thread: Hrvoje Spoljar: "Re: using tar on localhost"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|