You can clone with
HTTPS or Subversion.
Octopus is a new way of doing database sharding with ActiveRecord. This projects contains ideas from the creator, and from a bunch of other projects that already have implemented Database Sharding. Octopus supports Replication / Sharding
Some links that could help you:
Another Replication Example