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.”

Has anyone got backups from virtualmin to DO spaces working?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I just set this up for one of my Virtualmin-managed servers recently –

First, follow the path “Virtualmin > Backup and Restore > Cloud Storage Providers > Amazon S3” to set up your Spaces particulars.

  • 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.)
  • In the field “S3-compatible server hostname” in Virtualmin, input your Spaces endpoint – i.e. [region] (e.g.
  • In the field “Upload chunk size in MB”, a value between 20 - 200 should be optimal. I use 50.
  • Save.

Now, go to “Backup and Restore > Backup Virtual Servers” to setup/run your backup.

  • 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]”), 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.)
  • If you’re creating a folder, you might want to select the “Create destination directory?” check box. (The other options are up to you, and you can find more information on your options for Virtualmin backups here – )
  • Click the “Backup Now” button, and you should be good to go!

Hi @tigersloft,

No, you shouldn’t need a new space per droplet.

It’s a little hard to tell what the issue might be with your setup, given the limited information. However, I suggest you go over the details you used for the settings again and confirm they are accurate.

You may especially wish to confirm that you are using the right pair of keys, i.e. your “Spaces” access keys, and you could try generating a fresh pair to use for the new connections and see it that helps.

tosna. great article. works perfectly on the first server i tried. however, the same exact settings do not work on any of my other servers. only error message is

Failed to list S3 buckets :

same error on all servers except the first one i set it up on. so. 2 questions…

  1. do i need a new space per droplet? (i wouldn’t think so)
  2. any thoughts on why i would be getting this message? thanks.