From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Date: Wed, 30 Sep 2009 03:34:00 +0300 From: Michael Shigorin To: ALT Linux Community general discussions Message-ID: <20090930003400.GT28241@osdn.org.ua> Mail-Followup-To: ALT Linux Community general discussions References: <4AB9A6DA.2070409@rambler.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4AB9A6DA.2070409@rambler.ru> User-Agent: Mutt/1.4.2.1i Subject: Re: [Comm] rsync X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: shigorin@gmail.com, ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2009 00:34:16 -0000 Archived-At: List-Archive: List-Post: On Wed, Sep 23, 2009 at 10:40:58AM +0600, alisher wrote: > написал скрипт: Мелкие придирки не по сути поставленного вопроса (раз ответили): > #!/bin/bash Обычно достаточно /bin/sh, тут так точно. > while [ true ] > do while :; do Здесь двоеточие -- это shell builtin: $ help : :: : No effect; the command does nothing. A zero exit code is returned. [ -- хоть и тоже shell builtin, но тут совершенно излишний. (см. man test) > /usr/bin/rsync -avz -P --delete-after -z, кажется, заблокировано на сервере; у меня обычно -PavHx +/- --link-dest, если есть с чем хардлинковать. -- ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/