Mirroring Debian

166 views
Skip to first unread message

Rickard B Hansson

unread,
Jun 19, 2021, 4:06:06 PM6/19/21
to aptly-discuss
Hi!

I now use apt-mirror to to uphold local repository on my private home lan.
I often have to manualley delete some files and download new from mirrored site.
Only for Debian bullseye.

So, I want to try mirror Debian 11 with aptly and eventualley retire apt-mirror.

I want to create a skript that creates database, another that start mirror, to minimize possibility of errors in setup.

Will the content och below create database for Debian 11, for amd and i386 arch and alla components?

aptly -architectures=amd64,i386 mirror create debian-bullseye http://ftp.acc.umu.se/debian/ bullseye main 
aptly -architectures=amd64,i386 mirror create debian-bullseye http://ftp.acc.umu.se/debian/ bullseye contrib 
aptly -architectures=amd64,i386 mirror create debian-bullseye http://ftp.acc.umu.se/debian/ bullseye non-free

aptly -architectures=amd64 mirror create debian-bullseye-backports http://ftp.acc.umu.se/debian/ bullseye-backports main 
aptly -architectures=amd64 mirror create debian-bullseye-backports http://ftp.acc.umu.se/debian/ bullseye-backports contrib 
aptly -architectures=amd64 mirror create debian-bullseye-backports http://ftp.acc.umu.se/debian/ bullseye-backports non-free

aptly -architectures=amd64,i386 mirror create  debian-bullseye-updates http://ftp.acc.umu.se/debian bullseye-updates main 
aptly -architectures=amd64,i386 mirror create  debian-bullseye-updates http://ftp.acc.umu.se/debian bullseye-updates contrib 
aptly -architectures=amd64,i386 mirror create  debian-bullseye-updates http://ftp.acc.umu.se/debian bullseye-updates non-free

aptly -architectures=amd64,i386 mirror create debian-bullseye-proposed-updates  http://ftp.acc.umu.se/debian bullseye-proposed-updates main 
aptly -architectures=amd64,i386 mirror create debian-bullseye-proposed-updates  http://ftp.acc.umu.se/debian bullseye-proposed-updates contrib 
aptly -architectures=amd64,i386 mirror create debian-bullseye-proposed-updates  http://ftp.acc.umu.se/debian bullseye-proposed-updates non-free

Regards rbh

Bernd Naumann

unread,
Jun 22, 2021, 5:26:01 AM6/22/21
to aptly-...@googlegroups.com
Hey Rickard,

First, did you have seen and read
https://www.aptly.info/doc/feature/multi-component/ ?
I find this the most helpful intro into aptly.

But my impression that it now misses how to import a mirror into a local
repo used for publishing....
See https://www.aptly.info/doc/aptly/repo/import/ too

So basic steps are
* for each distribution AND each component create a mirror
* for each of the above create a repo
* for each repo, import the corresponding mirror into it
* for each distribution, publish multiple repos as a multi-component publish
* serve with a httpd of your choice
* for each mirror, update it
* for each repo, repeat import corresponding mirror into it
* republish each publish

Feel free to ask for further details if things are still unclear to you.


@all: In a hurry I could not see/find when/how/if the page
https://www.aptly.info/doc/feature/multi-component/ changed, but my
impression is that this was once a complete guide?

Best,
Bernd
Reply all
Reply to author
Forward
0 new messages