* Re: [sisyphus] Вопрос про rsync
2005-12-26 12:16 [sisyphus] Вопрос про rsync Alexei V. Mezin
@ 2005-12-26 13:19 ` Alexey V. Novikov
2005-12-26 13:25 ` Yuriy Kashirin
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Alexey V. Novikov @ 2005-12-26 13:19 UTC (permalink / raw)
To: mezin, ALT Linux Sisyphus discussion list
26.12.2005 15:16, Alexei V. Mezin пишет:
>
> А есть ли у rsync режим наподобие dry-run с сохранением списка
> "скаченных" файлов? Задача: натравить rsync на локальные репозитарий,
> получить список пакетов, которые нужно обновить, пойти со списком в то
> место, где есть быстрый и бесплатный интернет, выкачать нужное. А потом
> rsync'ом сделать "локальное" обновление.
>
> Маны курил, но видимо невнимательно.
:)
[novikov@gw novikov]$ rsync --help | grep dry-run
-n, --dry-run show what would have been transferred
--
WBR, Alexey V. Novikov
----------------------
JID: alex-novikov at jabber dot ru
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] Вопрос про rsync
2005-12-26 12:16 [sisyphus] Вопрос про rsync Alexei V. Mezin
2005-12-26 13:19 ` Alexey V. Novikov
@ 2005-12-26 13:25 ` Yuriy Kashirin
2005-12-26 17:48 ` [sisyphus] " Michael Shigorin
2005-12-27 13:23 ` [sisyphus] " Afanasov Dmitry
3 siblings, 0 replies; 6+ messages in thread
From: Yuriy Kashirin @ 2005-12-26 13:25 UTC (permalink / raw)
To: sisyphus
On Monday 26 December 2005 14:16, Alexei V. Mezin wrote:
> А есть ли у rsync режим наподобие dry-run с сохранением списка
> "скаченных" файлов? Задача: натравить rsync на локальные
> репозитарий, получить список пакетов, которые нужно обновить, пойти
> со списком в то место, где есть быстрый и бесплатный интернет,
> выкачать нужное. А потом rsync'ом сделать "локальное" обновление.
>
> Маны курил, но видимо невнимательно.
man rsync
-n, --dry-run
Указывает не осуществлять никаких передач, а только
сообщать о тех действиях, которые могли бы произойти.
--
Best regards
Yuriy Kashirin
eMICT company
Kyiv, Ukraine
phone: (+38044) 206 7800
fax: (+38044) 206 7801
http://www.eMICT.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [sisyphus] Re: Вопрос про rsync
2005-12-26 12:16 [sisyphus] Вопрос про rsync Alexei V. Mezin
2005-12-26 13:19 ` Alexey V. Novikov
2005-12-26 13:25 ` Yuriy Kashirin
@ 2005-12-26 17:48 ` Michael Shigorin
2005-12-26 18:50 ` Alexei V. Mezin
2005-12-27 13:23 ` [sisyphus] " Afanasov Dmitry
3 siblings, 1 reply; 6+ messages in thread
From: Michael Shigorin @ 2005-12-26 17:48 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
On Mon, Dec 26, 2005 at 03:16:24PM +0300, Alexei V. Mezin wrote:
> А есть ли у rsync режим наподобие dry-run с сохранением списка
^^^^^^^^^^^^^^^^^
> "скаченных" файлов?
Нет AFAIK, а жаль. Сам в ту сторону усиленно думал.
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] Re: Вопрос про rsync
2005-12-26 17:48 ` [sisyphus] " Michael Shigorin
@ 2005-12-26 18:50 ` Alexei V. Mezin
0 siblings, 0 replies; 6+ messages in thread
From: Alexei V. Mezin @ 2005-12-26 18:50 UTC (permalink / raw)
To: ALT Linux Sisyphus discussion list
Michael Shigorin пишет:
> On Mon, Dec 26, 2005 at 03:16:24PM +0300, Alexei V. Mezin wrote:
>> А есть ли у rsync режим наподобие dry-run с сохранением списка
> ^^^^^^^^^^^^^^^^^
>> "скаченных" файлов?
>
> Нет AFAIK, а жаль. Сам в ту сторону усиленно думал.
>
Пока получается как-то вот так:
cd /ALT/Sisyphus/SRPMS
rsync -avzni rsync.altlinux.ru::ALTLinux/Sisyphus/files/SRPMS/ ./ >
/home/alexei/rsync_ready/rsync_SRPMS.log
cat ./rsync_SRPMS.log | grep f+++ | awk '{print
"ftp://ftp.altlinux.ru/pub/distributions/ALTLinux/Sisyphus/files/SRPMS/"$2}'
> SRPMS.list
А потом скормить SRPMS.list какой-нить качалке наподобие wget.
Осталось сделать из этого приличный скрипт.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] Вопрос про rsync
2005-12-26 12:16 [sisyphus] Вопрос про rsync Alexei V. Mezin
` (2 preceding siblings ...)
2005-12-26 17:48 ` [sisyphus] " Michael Shigorin
@ 2005-12-27 13:23 ` Afanasov Dmitry
3 siblings, 0 replies; 6+ messages in thread
From: Afanasov Dmitry @ 2005-12-27 13:23 UTC (permalink / raw)
To: sisyphus
[-- Attachment #1: Type: text/plain, Size: 790 bytes --]
On Mon, Dec 26, 2005 at 03:16:24PM +0300, Alexei V. Mezin wrote:
>
> А есть ли у rsync режим наподобие dry-run с сохранением списка
> "скаченных" файлов? Задача: натравить rsync на локальные репозитарий,
> получить список пакетов, которые нужно обновить, пойти со списком в то
> место, где есть быстрый и бесплатный интернет, выкачать нужное. А потом
> rsync'ом сделать "локальное" обновление.
>
> Маны курил, но видимо невнимательно.
я тоже не нашёл.
поэтому свои два дерева файлов на работе и дома я обновляю следующим
шаманским образом:
1. на работе ваяю дерево либо через osec либо простым find -type | while ...; touch ...
2. приношу домой и заливаю в него через rsync --ignore-existing
3. на работе заливаю обратно.
--
С уважением,
Афанасов Дмитрий
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread