-
Notifications
You must be signed in to change notification settings - Fork 27
Instant update mirroring
The future tier'ed CPAN mirroring will use File::Rsync::Mirror::Recent (also known as rrr). Currently for CPAN mirroring (as opposed to PAUSE-only mirroring...) a recent version from git is recommended.
This setup is just in testing for now; don't try it unless you want to help make sure it works!
Email [email protected] for a username/password for the master mirror for testing and put it into the script below which you'll run to mirror CPAN "instantly". It will take a while to get synced up, but after that it'll get the latest changes every 20 seconds with very little overhead.
Please sync into a separate directory from your regular "production CPAN mirror" for now (and report on any differences between the two!).
You can use this for the full CPAN; no need to separately use rrr for the PAUSE directories. When we move this to "full production" the changes from PAUSE will come through with an extra delay of just 10-30 seconds.
The goal of this is to find and fix any bugs in the rrr tools and make sure that all updates to CPAN comes through to your mirror the same as the traditional "full" rsync.
In production it'll likely be recommended to run a full rsync every few days in case rrr missed something; but for the testing please don't do that. Maybe it won't be necessary at all.
In the not too far future this or a variation of it will be in the main git repository, but for now get rrr-client from https://github.com/abh/rersyncrecent/raw/master/bin/rrr-client