unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Clément Pit--Claudel" <clement.pit@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Provide rsync access to GNU ELPA for mirroring it
Date: Wed, 13 Jul 2016 09:14:27 +0200	[thread overview]
Message-ID: <5785EA53.1060603@gmail.com> (raw)
In-Reply-To: <jwva8hmxnrg.fsf-monnier+gmane.emacs.devel@gnu.org>


[-- Attachment #1.1: Type: text/plain, Size: 1094 bytes --]

On 2016-07-13 04:45, Stefan Monnier wrote:
> but if someone can provide me the
> typical steps and a sample config file (on a Debian machine) it would
> probably nudge me towards doing it more quickly.

Something like this should work, more or less:

1. Set RSYNC_ENABLE to true in /etc/default/rsync

2. Put this following in /etc/rsyncd.conf:

        pid file=/var/run/rsyncd.pid

        uid = nobody
        gid = nogroup
        list = yes
        read only = yes
        use chroot = yes # CHECK ME
        max connections = 4 # CHANGE ME

        [elpa]
            comment = GNU Elpa rsync mirror
            path = /var/www/pub # CHANGE ME
            refuse options = checksum dry-run
            dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz

This is a mix of rsyncd.conf's manpage and /usr/share/doc/rsync/examples/rsyncd.conf.  You'll need to make /var/www/pub (or whichever folder you pick) world-readable, and then to figure out how to atomically update its contents (I'll trust your shell-script-fu on that one :).

Clément.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-07-13  7:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-02 16:02 Provide rsync access to GNU ELPA for mirroring it Chunyang Xu
2016-07-02 19:19 ` Clément Pit--Claudel
2016-07-03  7:16   ` Chunyang Xu
2016-07-13  1:06     ` Clément Pit--Claudel
2016-07-13  2:45     ` Stefan Monnier
2016-07-13  7:14       ` Clément Pit--Claudel [this message]
2016-07-13 14:23         ` Stefan Monnier
2016-07-15 15:41         ` Stefan Monnier
2016-07-15 16:09           ` Clément Pit--Claudel
2016-07-15 16:31             ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5785EA53.1060603@gmail.com \
    --to=clement.pit@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).