= 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 ---- CategoryEmdebian