The Perl interface to rsync is here.
In reply to Re: Directory replication by matija in thread Directory replication by crabbdean