I have posted an updated version to my homepage. It supports locking http://home.worldonline.cz/~cz210552/aptrsync.html