#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 учасників
Завантажується...
Скасувати
Зберегти
Тут ще немає жодного вмісту.