There is a much easier way to sync avatars, directly from cPanel on the site, using command commands to sync avatars folder with other similar folders in subdomains or sub sites. Automated tasks (cron jobs) are set. This type of task is created in cPanel-> Automated tasks (Cron jobs), and through them you can specify in a certain period to perform an action.
For example, to sync the content of example.com/wp-content/uploads/avatars in sub1.example.com/wp-content/uploads/avatars, you can use the following cron task:
rsync -av –progress / home / directory of the site in cPanel / example.com / wp-content / uploads / avatars / sub1.example.com / wp-content / uploads / avatars /
It is recommended that cron tasks not be performed too often. You can configure the task to run every 10 minutes.