Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mirror] Another termux mirror in Germany #18398

Closed
SunRed opened this issue Nov 2, 2023 · 5 comments
Closed

[Mirror] Another termux mirror in Germany #18398

SunRed opened this issue Nov 2, 2023 · 5 comments

Comments

@SunRed
Copy link

SunRed commented Nov 2, 2023

I have this mirror running for quite a while now and was recently reminded again to finally contribute my mirror to this project.
The server is running at Hetzner in Falkenstein/Vogtland, Germany with a 1Gb/s connection and support for both ipv4 and ipv6 and is available at https://mirror.sunred.org/termux/ with the following sources.list entries:

deb https://mirror.sunred.org/termux/termux-main stable main
deb https://mirror.sunred.org/termux/termux-root root stable
deb https://mirror.sunred.org/termux/termux-x11 x11 main

I check every two hours using rsync on the origin server.
Additionally there are 8 sync slots open for syncing with rsync and rsync-ssl using rsync://sync.mirror.sunred.org/termux. I may put the main domain behind a caching reverse proxy at some point, hence the use of a different domain for the sync endpoint.

Additionally I would like to know if it would be possible to provide a lastupdate file in the root of the mirror repo or in /termux-main/ where the lastsync file is located (or maybe move this one to the root as well) to indicate when one of the repos was actually last updated. This would make it possible to optionally sync a mirror more frequently but only when necessary. This is similar to how other linux distros like Arch Linux do it with a sync script like here. With this I could e.g. check every 5-10 minutes more efficiently over http and only sync over rsync when packages were actually updated on the origin mirror.

@Grimler91
Copy link
Member

Thanks!

Additionally I would like to know if it would be possible to provide a lastupdate file

Yeah, would be nice, it was suggested by some other mirror as well. Unfortunately I don't see a good way to implement it except for patching/hacking aptly (which we use to control repo) to generate the file when publishing repo. Shouldn't be too hard I guess, but my golang skills are negligible

@Grimler91
Copy link
Member

Opened a feature request: aptly-dev/aptly#1229

@2096779623
Copy link
Member

Added to wiki .

@Grimler91
Copy link
Member

@SunRed there is now a lastupdate file at https://packages.termux.dev/apt/termux-main/lastupdate, it is generated by a cronjob that checks the date field in the Release file, every 5 minutes.

@SunRed
Copy link
Author

SunRed commented Dec 23, 2023

Thanks for coming back to me about this. I adjusted my configuration and thus it should now check every 5 minutes and only do a full sync if necessary. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants