Hi,

this is the script I use for mirroring:
https://johkra.net/gitweb/?p=mirror.git;a=summary

As mentioned earlier, it works by getting a file list from the repo databases and downloading packages not yet on the local computer.

It's written for Python 2, please adjust the shebang to "python2" on Arch based distributions. It should be possible to convert to Python 3 using 2to3, but I have not tested it.

Since the scripts spends most of the run time with I/O and calls to C-libraries, threading can help speed execution up. 2 threads should be safe on a dual core processor if you are not disk or network constrained. Although I have not tested with more than 2 threads, you may want to raise the chunk size with more threads.

- Johannes

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Dev mailing list
[email protected]
http://lists.parabolagnulinux.org/mailman/listinfo/dev

Reply via email to