I mean that making a backup from either the web interface or the rake task for two of the 3 multisite hosts (that were both migrated from another server) uploads the backup to the root of the backup s3 bucket rather than into sitename/backupname.
It seems bizarre to me too.
I’ll try adding some puts to those functions to see if I can track it down.
I think that I did puts the source_path and it had the correct full path in the OS, but when it gets uploaded to S3, the sitename is no longer in the path.
I’ll look more closely again next week. The backups are there, they just aren’t where Discourse will find them.