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

Avoinna
7 vuotta sitten avasi vaeringjar · 8 kommenttia

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 kommentoitu 7 vuotta sitten
Omistaja

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 kommentoitu 7 vuotta sitten
Omistaja

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 kommentoitu 7 vuotta sitten
Omistaja

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 kommentoitu 7 vuotta sitten
Omistaja

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 kommentoitu 7 vuotta sitten
Omistaja

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 kommentoitu 7 vuotta sitten
Omistaja

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 kommentoitu 7 vuotta sitten
Omistaja

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 kommentoitu 7 vuotta sitten
Omistaja

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.
Kirjaudu sisään osallistuaksesi tähän keskusteluun.
Ei merkkipaalua
Ei osoitettua
2 osallistujaa
Ladataan...
Peruuta
Tallenna
Sisältöä ei vielä ole.