---
title: "How do I create DigitalOcean Spaces credentials for database backups?"
url: "https://ploi.io/documentation/database/how-do-i-create-digitalocean-spaces-credentials-for-database-backups"
published: "2021-05-27"
last_updated: "2021-05-27"
---

# How do I create DigitalOcean Spaces credentials for database backups?

In order for you to create backups with DigitalOcean spaces, you will need the correct credentials to authenticate with it.

We will need 4 variables:

1. Bucket name
2. Endpoint (e.g. https://ams.digitaloceanspaces.com)
3. Spaces access key
4. Spaces secret key

First lets grab the key's, head over to [Applications &amp; API](https://cloud.digitalocean.com/account/api/tokens) inside DigitalOcean and generate a new key for Spaces:

![](https://ploi.io/storage/GdQC4dpOHjagQGz55r3tmUNYtC7bJyfWqO0fgc5b.png)

Save the access key and secret key somewhere safe, we will need these variables to create a backup configuration in your profile.

Next determine what your bucket name and endpoint is. In the sidebar press "Spaces", in there you might already have a bucket or you can create a new one.

Once you created one, you will see the bucket name at the top:

![](https://ploi.io/storage/9i2LEZhmT3PrMhIujfb18BdwRTOVhgdgbljkKf9e.png)

Finally lets grab the endpoint, visit your bucket and press the "Settings", scroll down until you see the Endpoint:

![](https://ploi.io/storage/flEhBSQhcVyYtaSpIiZTeeBuhKomoOXcHrfedM3F.png)

Now you have all 4 variables you need to configure the database backup in your profile. After that you can easily create backups using that configuration for multiple databases.