[olug] help with copyig using tar
Sam Tetherow
tetherow at nicusa.com
Thu Dec 18 16:48:42 UTC 2003
Well, i would start by removing the z option on both sides, why burn the
CPU when you are compressing it only to turn around and uncompress on
the other end of the pipe ;)
Ryan Stille wrote:
> I'm trying to copy a directory structure to another location using tar. I thought this would work:
>
> tar -czf - source_dir_name |tar -xzf - -C /tmp/dest_dir_name/
>
> It kind of works, the source_dir_name directory now exists under /tmp/dest_dir_name/, but I also get this output on my terminal:
> gzip: stdin: decompression OK, trailing garbage ignored
> tar: Child returned status 2
> tar: Error exit delayed from previous errors
>
> So I don't know if everything worked ok. Any ideas?
>
> Thanks,
> -Ryan
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>
--
------------------------------------------------------------------------
Sam Tetherow tetherow at nicusa.com
Director of Development
NIC Labs (PSSG) http://www.nicusa.com
More information about the OLUG
mailing list