rh-lab-q / deltametadata-prototype

2 stars 5 forks source link

setup cron job on the server #2

Closed jsilhan closed 8 years ago

jsilhan commented 8 years ago

depends on #1

jsilhan commented 8 years ago

use this url to sync files for example: http://fr2.rpmfind.net/linux/fedora/linux/updates/23/x86_64

LukasSlouka commented 8 years ago

on server, newest files are in local dir and backed-up files are in backup/{date-timestamp} dirs. Job is executed every 30 minutes (if there are changes).

mluscon commented 8 years ago
jsilhan commented 8 years ago

repack files with gzip --rsyncable

this part is tricky, you would need to fix the checksums in repomd.xml to the new ones afterwards.

mluscon commented 8 years ago

this part is tricky, you would need to fix the checksums in repomd.xml to the new ones afterwards.

I hope that only librepo uses those checksums after download and as we bi-passed it there should be no need for this.

mluscon commented 8 years ago

Ok, I merged this with slightly changed location and name of the script. Please setup your editor to trim trailing whitespaces ;-).