zsh-workers
 help / color / mirror / code / Atom feed
From: Jason Price <jprice@cyberbuzz.gatech.edu>
To: DervishD <raul@pleyades.net>
Cc: Zsh <zsh-workers@sunsite.dk>
Subject: Re: Recursion and shell functions
Date: 10 Oct 2002 16:02:15 -0400	[thread overview]
Message-ID: <kgohefukqpk.fsf@redfish.gatech.edu> (raw)
In-Reply-To: <20021010194154.GA10963@DervishD>

DervishD <raul@pleyades.net> writes:

>     First of all, please excuse this a-bit-off-topic question, but I
> need to know if a feature available in zsh is portable.

You could re-invent the wheel, but why?

(cd <your source dir> ; tar -cpvf - .) | ( cd <your dest dir> ; tar -xpf -)

Or if you want to preserve things, I imagine a similar incantation with
rsync will work just as well.

The above works amazingly well with ssh too:

cd <your source> ; tar -cpvf - . | ssh -l <name> <host> "cd dir ; tar -xpf -"

Rsync is good, but in some comparisons tar over rsh worked better for
large directories with lots of files in the 'copy everything first time'
case.  In the 'just the delta's needed' case, rsync wins.

Jason


  parent reply	other threads:[~2002-10-10 20:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-10 19:41 DervishD
2002-10-10 19:44 ` DervishD
2002-10-10 20:02 ` Jason Price [this message]
2002-10-10 21:15   ` DervishD
2002-10-11  9:02 ` Oliver Kiddle
2002-10-11 11:05   ` DervishD
     [not found]     ` <E1802KE-0001g0-00@bimbo.logica.co.uk>
2002-10-11 18:27       ` DervishD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=kgohefukqpk.fsf@redfish.gatech.edu \
    --to=jprice@cyberbuzz.gatech.edu \
    --cc=raul@pleyades.net \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).