备份/恢复时图片丢失、域名更改,无法上传新图片

Have you tried a rebake?

cd /var/discourse
./launcher enter app
rake posts:rebake