export RSYNC_CONNECT_PROG
hands_setup
+checkit "$RSYNC -avvvvz \"$FROM/\" localhost::test-to/" "$FROM" "$TO"
-# If we are root, we must allow the rsyncd process (which runs under
-# a different uid/gid) to write to the destination directory. Source
-# directory must be chown'ed as well so that UIDs & GIDs match when
-# the source & destination are compared after copying.
-chown -R $RSYNCD_UID:$RSYNCD_GID "$FROM" "$TO" 2>/dev/null || true
-
-checkit "$RSYNC -avvz \"$FROM/\" localhost::test-to/" "$FROM" "$TO"
-
+# The script would have aborted on error, so getting here means we've won.
+exit 0