WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: User mirroring of the repo.  (Read 121172 times)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11037
Re: User mirroring of the repo.
« Reply #45 on: June 17, 2018, 06:18:13 AM »
The scripts might not run, as there's been changes over the years in info format, etc. However, there's been no changes to 2.x since 2012, and we don't take any for that old versions - please consider them as historical archives.
The only barriers that can stop you are the ones you create yourself.

Offline CentralWare

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 760
Re: User mirroring of the repo.
« Reply #46 on: June 17, 2018, 09:03:36 PM »
@curaga: okay, 2.x flagged as unsupported. Thanks!

Offline CentralWare

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 760
Re: User mirroring of the repo.
« Reply #47 on: August 15, 2018, 10:38:28 PM »

@Jason / roberts / curaga / etc.


Here's a potential fix for bandwidth (TCL, Ibiblio and others) where people would not "need" a full mirror assuming there's an internet connection.
Caching Server Scenario:
     Assume busybox-httpd or similar (small) web server
     Add a custom CGI which catches 404's, puts the caller "on hold", fetches the requested file from a mirror, updates the local repo, then sends the file through to the caller.

This way, people can run a local repo on an as-needed basis.  Figuring out which files/dependencies/etc. someone's going to need is a chore when you're building/rebuilding/testing/repeating.

Client machine:
/opt/tcemirror contains
Code: [Select]
http://192.168.111.222/tinycorelinux/
Repo Server:
/usr/local/bin/busybox-httpd runs our show
/usr/local/repowww/cgi-bin/index.cgi contains 404 downloader content
/usr/local/repowww/tinycorelinux is a soft-link to where ever the TCL repo is located