Mirrors one directory to another while checking for consistency.