It’s almost certainly not 100% compatible. Is it compatible with Discourse? You’ve checked? Have a look at Configure an S3 compatible object storage provider for uploads
There’s a topic about using remap to switch buckets.
What I would do is set up a new server with teh new S3 config, set the SiteSettings.include_s3_uploads_in_backups
to true and see if it’ll restore.