Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: an update command
- X-seq: zsh-users 15060
- From: FranÃois Gannaz <francois.gannaz@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: an update command
- Date: Wed, 19 May 2010 12:26:27 +0200
- In-reply-to: <Xns9D7D6AFA2B217zzappergmailcom@xxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <Xns9D7D6AFA2B217zzappergmailcom@xxxxxxxxxxxx>
Le 2010-05-19, zzapper <david@xxxxxxxxxx> a Ãcrit :
> Hi
> when copying files from a test server to a live server eg
>
> >cp $T/config.php $L
>
> I only want to do the copy if the file ALREADY exists in the destination
> directory
>
> I guess I can hack a script up to do this but how would you do this?
That's not related to zsh, but I would use `rsync` with `--existing`.
Rsync is especially useful when files are updated.
Regards
--
FranÃois
Messages sorted by:
Reverse Date,
Date,
Thread,
Author