The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  вход/выход  слежка  RSS
"wget, маленький вопросик..."
Вариант для распечатки  
Пред. тема | След. тема 
Форумы OpenNET: Виртуальная конференция (Public)
Изначальное сообщение [ Отслеживать ]

"wget, маленький вопросик..."  +/
Сообщение от stakado email(ok) on 27-Окт-09, 11:55 
Драсьте!
Подскажите, пожалуйста, можно ли заставить wget выкачивать лишь изменившиеся файлы?
Есть папка (если быть более точным - структура папок), в ней лежат файлы, которые иногда изменяются. Так вот надо сделать локальную копию этой папки, но не хочется постоянно перекачивать её полностью, а хочется качать лишь изменённые файлы.

Заранее спасибо!

Высказать мнение | Ответить | Правка | Cообщить модератору

Оглавление

Сообщения по теме [Сортировка по времени | RSS]


1. "wget, маленький вопросик..."  +/
Сообщение от anonymous (??) on 27-Окт-09, 12:12 
One of the most important aspects of mirroring information from the Internet is updating your archives.

Downloading the whole archive again and again, just to replace a few changed files is expensive, both in terms of wasted bandwidth and money, and the time to do the update. This is why all the mirroring tools offer the option of incremental updating.

Such an updating mechanism means that the remote server is scanned in search of new files. Only those new files will be downloaded in the place of the old ones.

A file is considered new if one of these two conditions are met:

   1. A file of that name does not already exist locally.
   2. A file of that name does exist, but the remote file was modified more recently than the local file.

To implement this, the program needs to be aware of the time of last modification of both local and remote files. We call this information the time-stamp of a file.

The time-stamping in GNU Wget is turned on using --timestamping (-N) option, or through timestamping = on directive in .wgetrc. With this option, for each file it intends to download, Wget will check whether a local file of the same name exists. If it does, and the remote file is older, Wget will not download it.

If the local file does not exist, or the sizes of the files do not match, Wget will download the remote file no matter what the time-stamps say.

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

2. "wget, маленький вопросик..."  +/
Сообщение от stakado email(ok) on 27-Окт-09, 12:27 
Спасибо большое, ща буду пробовать!
Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

Архив | Удалить

Индекс форумов | Темы | Пред. тема | След. тема




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2025 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру