Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.39 KB

MAINTAINER.md

File metadata and controls

44 lines (30 loc) · 1.39 KB

Notes for whoever's maintaining the server side of the openstreetmap-mirror.

How to set this up on a new server

The osm-mirror scripts run on w.nix.is. To set it up again do:

sudo adduser --disabled-login --disabled-password osm-mirror

Which'll run these cronjobs to mirror the repositories.

The .gitconfig for the user:

$ perl -pe 's/token = \K.*/seekrt/' ~osm-mirror/.gitconfig
[github]
        user = openstreetmap
        token = seekrt
[user]
        name = OpenStreetMap GitHub mirror
        email = [email protected]

This use of GitHub has been approved by GitHub staff.

Setting up a new repository

This is how I add a new mirror. It would be nice to script this all up via the GitHub API so that this can be done trivially through a config file. I.e. just add something like:

repository = gosmore
url = http://svn.openstreetmap.org/applications/rendering/gosmore

What I do now

Create a new repository for it:

Project name: gosmore
Description: Mirror of Gosmore's Subversion repository
Homepage URL: http://svn.openstreetmap.org/applications/rendering/gosmore

Then set up a cronjob for it, see the cronjobs file for examples.