Differences between revisions 4 and 5
Revision 4 as of 2012-03-06 16:52:01
Size: 807
Editor: NeilWilliams
Comment:
Revision 5 as of 2012-03-14 19:09:13
Size: 1885
Editor: NeilWilliams
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
== Get the archvsync scripts == == Get the scripts ==
Line 7: Line 7:
http://www.debian.org/mirror/ftpmirror#how For setting up a mirror, especially a push-triggered mirror, it's probably the easiest to use ftpsync. Refer to http://www.debian.org/mirror/ftpmirror.en.html#how for getting the scriptset.
Line 9: Line 9:
== Setup the archvsync user == == Setup the scripts ==
Line 11: Line 11:
This user will typically have the archvsync scripts available in the home directory of that user, e.g. bin/runmirrors will have a realpath of /home/archvsync/bin/runmirrors. Generally, you can follow the instructions in the README, with some minor modifications:
 * Create a dedicated user for the whole mirror.
 * Create a seperate directory for the mirror, writeable by the new user.
 * Unpack ftpsync.tar.gz or clone the repository archvsync.git in the mirror user's $HOME
 * Place the ftpsync.conf.sample into $HOME/etc as ftpsync-grip.conf and edit it to suit your system. You should at the very least change the TO (directory for the mirror), RSYNC_HOST (host to sync from) and RSYNC_PATH (archive to sync, in this case "emdebian") lines.
 * The official README suggests to name the conf file ftpsync.conf. But as we intend to mirror a special archive called "grip", the conf file has to be named ftpsync-grip.conf
 * Create $HOME/log (or wherever you point $LOGDIR to)
 * Setup the .ssh/authorized_keys for the mirror user and place the public key of your upstream mirror into it. Preface it with:
Line 13: Line 20:
== Setup the correct key == {{{
no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,command="~/bin/ftpsync",from="IPADDRESS"
}}}

 Replace $IPADDRESS with that of your upstream mirror.

== Obtain the correct key ==

Setting up an Emdebian Mirror

Get the scripts

For setting up a mirror, especially a push-triggered mirror, it's probably the easiest to use ftpsync. Refer to http://www.debian.org/mirror/ftpmirror.en.html#how for getting the scriptset.

Setup the scripts

Generally, you can follow the instructions in the README, with some minor modifications:

  • Create a dedicated user for the whole mirror.
  • Create a seperate directory for the mirror, writeable by the new user.
  • Unpack ftpsync.tar.gz or clone the repository archvsync.git in the mirror user's $HOME
  • Place the ftpsync.conf.sample into $HOME/etc as ftpsync-grip.conf and edit it to suit your system. You should at the very least change the TO (directory for the mirror), RSYNC_HOST (host to sync from) and RSYNC_PATH (archive to sync, in this case "emdebian") lines.
  • The official README suggests to name the conf file ftpsync.conf. But as we intend to mirror a special archive called "grip", the conf file has to be named ftpsync-grip.conf
  • Create $HOME/log (or wherever you point $LOGDIR to)
  • Setup the .ssh/authorized_keys for the mirror user and place the public key of your upstream mirror into it. Preface it with:

no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty,command="~/bin/ftpsync",from="IPADDRESS"
  • Replace $IPADDRESS with that of your upstream mirror.

Obtain the correct key

http://www.emdebian.org/~archvsync/pushmirror.pub

This is the key which the Emdebian server will use to push files.

Sizes

The full Emdebian mirror is ~79Gb, so allow 90-100Gb.

Starting the push

You need to ask on the debian-embedded@lists.debian.org mailing list to be added to the push. To do that, you need to supply the shortname and server name of the mirror:

e.g. hands debian.hands.com