Backup Virtualmin to DigitalOcean spaces

I am trying to figure out the correct settings to backup from virtualmin to my digitalocean space. I have followed this guide, but everytime the backup fails stating "Failed to list S3 buckets : The AWS Access Key Id you provided does not exist in our records."

@andrewrowlandg that tutorial is quite old—from 2009. I believe the interface was since updated with added support for custom S3 endpoint. Can you post a screenshot of this section on your Virtualmin config, hiding your access and secret keys?

You should have generated your keys for use here from the DO dashboard. Input them here.
(Note: You'll need to input the "Spaces access keys" from your DO API page, and not a "Personal Access Token". Additionally, you'll need a pair of keys – the "Access Key" and the "Secret Key". You may need to generate a fresh pair or regenerate an existing pair if you can't see your Secret key on this page.)

Under "Destination and format", select "Amazon S3 bucket. Your keys should have been pre-filled.

For the "Bucket and path field", enter your "spacename" (i.e. the xyz in "xyz.[region].digitaloceanspaces.com"), followed by the path of any folder you might have created or wish to create – e.g. [spacename]/my-folder-1 (Do not include a trailing slash.)