these are the scripts we use to keep up to date our local OpenSuSE mirror. Our requirements are to have both the recent releases and also maintain some older 11.4 ones.
Code is here:
They just require bash, they can surely be improved - check out the README for the details :-).
Cheers, -- ~ Marcello Barnaba ~ ICT, Agile Team (A008)
~~ The information contained in or accompanying this email and any attachment thereto, is intended solely for the use of the stated recipient(s) and may contain information that is confidential and/or privileged. Any dissemination, distribution or copying of this email and any attachment by anyone who is not a stated recipient is strictly prohibited. If you receive this message in error, please notify the sender immediately and delete the message and any attachment from your system without retaining a copy. ~~