After a restore or a migration, ids can point to the wrong account. I do not want to touch anything that has a different owner.
sudo chown -c -R --from=1000:1000 www-data:www-data /srv/site
--from=CURRENT_OWNER:CURRENT_GROUP makes chown skip every file that does not match, and -c prints the files that really changed. Either side may be left out, so --from=:oldgroup matches on the group only. The option is GNU specific, so it is not available in the macOS chown. Run it once without -R on a single folder to check the match before the recursive run.
Further reading: chown manual page