in reply to rsync workalike

For 1 and 2, you can start with my poor-man's rsync code.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.