[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

OT: Setting up a local mirror [WAS Re: Bug#1011343: WISHLIST: Offical ALL-IN-ONE images?]



[Here for anyone else that may need it - probably offtopic for this list
after that.]

On Sun, May 22, 2022 at 12:19:27AM +0800, Zhang Boyang wrote:
> 
> On 2022/5/21 22:54, Linux-Fan wrote:
> 
> > > I admit a local mirror is more suitable for large set of computers.
> > > But for a small set of computers, for example, 1-5 computers,
> > > setting up a local mirror might be too heavy.
> > 
> > Actually I think this may be a misconception. Setting up a mirror for
> > internal use is (from my experience with the `ftpsync` script, cf.
> > https://www.debian.org/mirror/ftpmirror) pretty straight-forward. AFAIK
> > the minimal steps are as follows:
> > 
> > - Download and extract ftpsync to a location
> > - Configure distrib/etc/ftpsync.conf
> > - Setup a webserver to serve the mirror directory
> > - Invoke mirror script
> > - Then point clients to the webserver location
> > 
> 
> Thanks for this information. I think I overestimated the difficulty of
> creating a mirror.
> 

Quoting myself - which might be bad form

http://flosslinuxblog.blogspot.com/2020/02/rebuilding-mirror-software-mirroring-of.html 

gives the full steps to set up a mirror by editing one script, more or less.

You do need rsync and a mirror to pull from but this is really, really easy to do.

Setting up Apache is covered in another blog in that series at almost the
same time - it's essentially just unocmmenting the stanza for /srv in the 
default configuration. [My mirror directories are all under /srv ]

Hope this helps,

Andy Cater


> 
> 
> Best Regards,
> Zhang Boyang
> 


Reply to: