http://blog.jasonsherry.net/2013/01/01/script-pf-replication-help/

(Source: https://twitter.com/JasonSherry/status/286249419186253825)