Home > News
PKI/Security Labs
Octy OpenCA Logo OpenCA.org Logo

It is possible for you to mirror one or all of the prjects you find on the OpenCA.org through the RSYNC and FTP services. Here are step by step instructions on how to establish such mirrors.

Setup a mirror through RSYNC

This is the preferred way, because it needs minimal bandwidth to bring your mirror up to date due to the great RSYNC algorithm. And all you need is to install the very portable and robust RSYNC client.

  1. Make sure you have the excellent RSYNC client program (`rsync') installed on your system. If not, please grab the RSYNC distribution first and install it. You can found RSYNC on http://rsync.samba.org/rsync/ and ftp://rsync.samba.org/pub/rsync/. We recommend you to install version 2.6.4 or higher.
  2. With the following command you now can check which packages are available through the RSYNC service from rsync://ftp.openca.org/
    $ rsync rsync://ftp.openca.org/
  3. Now you have to decide to which local directory you want to mirror at OpenCA.org server, say ftp. Let's say you want to mirror the directory into your local /var/myftp/local-ftp directory. Then all you have to do is setup a Cron job which regularly runs the following command:
    $ rsync -rztpv --delete rsync://ftp.openca.org/ftp \
      /var/myftp/local-ftp
    
Setup a mirror through FTP

This is the good old portable way, because it uses the old FTP protocol to bring your mirror up to date. The drawback is that its less fast in updating and you have to install the Mirror package.

  1. Make sure you have the Mirror package (`mirror') installed on your system. If not, please grab the Mirror distribution first and install it. You can found Mirror on http://sunsite.org.uk/packages/mirror/ and ftp://sunsite.org.uk/packages/mirror/. We recommend you to install version 2.9 or higher.
  2. With the following command you now can check which packages are available through the FTP service from ftp.openca.org:
    $ ftp ftp.openca.org
      ftp> cd /
      ftp> ls -l
    
  3. Now you have to decide to which local directory you want to mirror, let's say /home/ftp/pub/openca/. Then you first setup a mirror configuration file (say /home/ftp/etc/openca.mcf) as following:
    package=openca
       site=ftp.openca.org
       remote_dir=/
       local_dir=/home/ftp/pub/openca/
       recursive=true
    
  4. Finally all you have to do is setup a Cron job which regularly runs the following command:
    $ mirror /home/ftp/etc/openca.mcf
    
Final Steps

When you mirror the one OpenCA.org projects please notice the following to points:

  • Additionally it would be very friendly when you just sent a message to mirrors@openca.org to inform the team about the new established mirror. Your mirror then can be added to the list of available mirror locations.
  • When you re-export the stuff from your mirror PLEASE PAY CLOSE ATTENTION TO ANY APPLICABLE EXPORT/IMPORT LAWS. The authors are not liable for any violations you make here. So be carefully yourself.
1339