Set up BackBlaze S3 with BunnyCDN

I have persisted trying to get this to work at the risk of losing my mind :wink:

So the last checksum error I got I resolved with the help of this - Can't rebuild due to AWS SDK gem bump and new AWS Data Integrity Protections - #28 by PatPatterson

That was done by adding the following to the env section in app.yml

AWS_REQUEST_CHECKSUM_CALCULATION: WHEN_REQUIRED
  AWS_RESPONSE_CHECKSUM_VALIDATION: WHEN_REQUIRED

And commenting out this in the hooks section of app.yml

after_assets_precompile:
    - exec:
        cd: $home
        cmd:
          - sudo -E -u discourse bundle exec rake s3:upload_assets
  #        - sudo -E -u discourse bundle exec rake s3:expire_missing_assets

the other env settings are set to this

DISCOURSE_S3_ACCESS_KEY_ID: 'key'
  DISCOURSE_S3_SECRET_ACCESS_KEY: ‘key’
  DISCOURSE_BACKUP_LOCATION: 's3'
  DISCOURSE_ENABLE_S3_UPLOADS: true
  DISCOURSE_S3_BACKUP_BUCKET: 'backupbucketonbackblaze’
  DISCOURSE_S3_REGION: 'us-west-002'
  DISCOURSE_INCLUDE_S3_UPLOADS_IN_BACKUPS: true

I ran a backup before I included the DISCOURSE_INCLUDE_S3_UPLOADS_IN_BACKUPS: true

And had a successful backup to Backblaze. YEAH!!!

When I put the line in the app.yml to include uploads the backup had an error which is as follows

EXCEPTION: tar --append --file /var/www/discourse/public/backups/default/my-server-name-2025-04-17-222758-v20250417043438.tar uploads/default
Failed to append uploads to archive.
tar: uploads/default: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors

I am not sure where is directory is supposed to be or how to fix it. Is it a directory I need to create on the discourse server or Backblaze? Or a setting I have missed in the site settings or the app.yml

Any guidance would be greatly appreciated.