1

We have a apt repository running to distribute upgrades for our software. The repository is accessed over ssh and a public key authentication:

deb ssh://repo.server.com/dist stable

As the download connection from Europe to America is really slow, I thought about setting up a mirror of the repository. I was wondering what the best practice in that case is. I tried setting up a mirror with apt-mirror, but it seems like this doesn't support ssh. I looked into apt-cacher but it seems like that doesn't really fit my needs.

Can I just rsync all files from the repository and then create a new apt repo?

Kevin Goedecke
  • 261
  • 2
  • 7

1 Answers1

-1

Why can't you just rsync the entire thing via SSH? You don't really need to create a new repository, you just need some way of directing your clients to use the local mirror instead of the remote one.

The entire Debian/Ubuntu mirror system is based entirely on rsync, so there's not really anything stopping you from just using rsync.

devicenull
  • 5,622
  • 1
  • 26
  • 31