Avatars and thumbnails will be regenerated by background jobs.
Avatars will be generated shortly after the restore. You should see a lot of “create_avatar_thumbnails” jobs in Sidekiq unless that’s already finished.
Generating thumbnails for images will take a lot longer, because that happens in batches over a long period of time. You can speed it up by running a rake task:
cd /var/discourse
./launcher enter app
rake posts:rebake_uncooked_posts