Slide 1

Slide 1 text

We can mirror it for you wholesale @SteveMarshall

Slide 2

Slide 2 text

How I started mirroring Why would you mirror? Tools for mirroring What can we learn?

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

You can take it with you

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

How I started mirroring Why would you mirror? Tools for mirroring What can we learn?

Slide 16

Slide 16 text

Avoid dependencies’ downtime

Slide 17

Slide 17 text

Avoid dependencies’ downtime Slow (or no!) network

Slide 18

Slide 18 text

Avoid dependencies’ downtime Slow (or no!) network Control dependency changes

Slide 19

Slide 19 text

Avoid dependencies’ downtime Slow (or no!) network Control dependency changes Improve performance

Slide 20

Slide 20 text

How I started mirroring Why would you mirror? Tools for mirroring What can we learn?

Slide 21

Slide 21 text

Index of / localhost:8000

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

$ rsync --archive --delete \ > --compress --progress \ > $SOURCE_URI \ > $TARGET_DIR

Slide 24

Slide 24 text

$ rsync --archive --delete \ > --compress --progress \ > cpan.org::CPAN \ > /data/cpan $ rsync --archive --delete \ > --compress --progress \

Slide 25

Slide 25 text

$ rsync --archive --delete \ > --compress --progress \ > ietf.org::internet-drafts \ > /data/ietf

Slide 26

Slide 26 text

$ rsync --archive --delete \ > --compress --progress \ > ftp.funet.fi::ftp/pub/\ > mirrors/ftp.imdb.com/pub \ > /data/imdb

Slide 27

Slide 27 text

$ git clone --shared --bare \ > $SOURCE_URI \ > $TARGET_DIR $ cd $TARGET_DIR $ git update-server-info

Slide 28

Slide 28 text

$ wget $SOME_FILE

Slide 29

Slide 29 text

$ wget --mirror \ > --convert-links \ > --page-requisites \ > --no-parent \ > $SOURCE_URI

Slide 30

Slide 30 text

$ some_proprietary_cmd \ > --for $REASONS

Slide 31

Slide 31 text

$ apt-mirror # rsync wrapper $ gem mirror $ bandersnatch mirror # PyPI

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

1) The Mirror’s IP must be registered at pear.php.net as a valid mirror 2) The Mirror must be registered as a DNS alias in the form xx.pear.php.net (us.pear.php.net, de.pear.php.net, etc.) —Mirroring pear.php.net

Slide 34

Slide 34 text

The central repository is over 180 GB and growing. To save us bandwidth and you time, mirroring the entire central repository is not allowed. —Creating Your Own [Maven] Mirror

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

How I started mirroring Why would you mirror? Tools for mirroring What can we learn?

Slide 38

Slide 38 text

WORKS LIKE MAGIC DON’T KNOW IF IT WORKS ≈

Slide 39

Slide 39 text

DON’T REINVENT THE WHEEL

Slide 40

Slide 40 text

DISTRIBUTED IS BETTER THAN CENTRALISED

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

Tools rsync.samba.org, git-scm.com, www.gnu.org/software/wget, github.com/devfort?query=cookbook Websites devfort.com, mostlyfinal.com, behabitual.com, spacelog.org