#16 review commands and resync the server cron with the repo

Открыто
7 лет назад открыта vaeringjar · комментариев: 8
vaeringjar прокомментировал 7 лет назад

But first, also review some of the crontab-sourse.json. At this moment the gungre.ch and lib.reviews both have pending fixes, and probably more optimization.

Also, need a note about how the gungre.ch has some manually created directories. Possibly, could breakup the cron into separate jobs for each problem directory.

Also, either remove -P or add -nH to avoid the double directory references.

Also, try out -m for mirroring.

But first, also review some of the crontab-sourse.json. At this moment the gungre.ch and lib.reviews both have pending fixes, and probably more optimization. Also, need a note about how the gungre.ch has some manually created directories. Possibly, could breakup the cron into separate jobs for each problem directory. Also, either remove -P or add -nH to avoid the double directory references. Also, try out -m for mirroring.
zPlus прокомментировал 7 лет назад
Владелец

The "Not a directory" issue with /dragora seems to be an old (and probably unfixed) bug.

The "Not a directory" issue with `/dragora` seems to be [an old (and probably unfixed) bug](https://savannah.gnu.org/bugs/?29647).
vaeringjar прокомментировал 7 лет назад
Владелец

Good find, zPlus. I'll sign on to savannah later and include the details for this particular case.

How fun if I have enough time find a fix and to submit a patch to wget. =)

Good find, zPlus. I'll sign on to savannah later and include the details for this particular case. How fun if I have enough time find a fix and to submit a patch to wget. =)
zPlus прокомментировал 7 лет назад
Владелец

wget --mirror --timestamping --convert-links --html-extension --force-directories --no-host-directories --directory-prefix=./gungre.ch http://gungre.ch/

this seems to (almost) work with these issues:

  • a bunch of .html files is created, for example dragora.html and videos.html
  • .1, .2, .n files seem to be created if the server doesn't return a Last-modified header
`wget --mirror --timestamping --convert-links --html-extension --force-directories --no-host-directories --directory-prefix=./gungre.ch http://gungre.ch/` this seems to (almost) work with these issues: - a bunch of `.html` files is created, for example `dragora.html` and `videos.html` - `.1, .2, .n` files seem to be created if the server doesn't return a `Last-modified` header
zPlus прокомментировал 7 лет назад
Владелец

How fun if I have enough time find a fix and to submit a patch to wget

that would be cool :P

> How fun if I have enough time find a fix and to submit a patch to wget that would be cool :P
vaeringjar прокомментировал 7 лет назад
Владелец

suggestion from selk

wget has -X to exclude directories
redundacy level [probably] comes from --directory-prefix=./gungre.ch
--mirror already implies --timestamping
--wait 1
-t 3 or -t 5
suggestion from selk wget has -X to exclude directories redundacy level [probably] comes from --directory-prefix=./gungre.ch --mirror already implies --timestamping --wait 1 -t 3 or -t 5
vaeringjar прокомментировал 7 лет назад
Владелец

And perhaps update the command for dragora mirror from cyphy.blue:

<mprodrigues> vaeringjar: I use a rsync command frusen told me to sync my mirror [16:30]

rsync -aviz --delete-delay 
  rsync://rsync.dragora.org/dragora/v2
  /usr/local/www/nginx/dragora/mirror  

<mprodrigues> likewise for v3 directory

And perhaps update the command for dragora mirror from cyphy.blue: \<mprodrigues\> vaeringjar: I use a rsync command frusen told me to sync my mirror [16:30] rsync -aviz --delete-delay rsync://rsync.dragora.org/dragora/v2 /usr/local/www/nginx/dragora/mirror \<mprodrigues\> likewise for v3 directory
vaeringjar прокомментировал 7 лет назад
Владелец

The gungre.ch repo still has a few html files generated from the directories, but they don't seem to pile up when I run it over and over again.

The dragora repo looks good. I will check this after all the cronjobs finish in a couple hours.

The gungre.ch repo still has a few html files generated from the directories, but they don't seem to pile up when I run it over and over again. The dragora repo looks good. I will check this after all the cronjobs finish in a couple hours.
vaeringjar прокомментировал 7 лет назад
Владелец

Not sure if the gungre.ch piles up or not after all. The directory ~/gungre.ch/ looks like it still might, but ~/gungre.ch/dragora/repo/ only has the one. I'll give it another day.

Not sure if the gungre.ch piles up or not after all. The directory ~/gungre.ch/ looks like it still might, but ~/gungre.ch/dragora/repo/ only has the one. I'll give it another day.
Войдите, чтобы присоединиться к обсуждению.
Нет этапа
Нет ответственного
2 участников
Загрузка...
Отмена
Сохранить
Пока нет содержимого.