I’m running CockroachDB on a DO droplet and want to backup the database to Spaces.
I’ve tried numerous variations on the backup command along the lines of:
backup into 's3://backups?AWS_ACCESS_KEY_ID=xxx&AWS_SECRET_ACCESS_KEY=xxx&AWS_ENDPOINT=fra1.digitaloceanspaces.com';
I’m struggling to find the correct form for the destination string. A working example would be most helpful.
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!
Found on: github
I found that these four vars all needed to be set:
AWS_ENDPOINT
AWS_REGION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
Example:
BACKUP INTO 's3://{bucket}/{path}?AWS_ENDPOINT=sfo2.digitaloceanspaces.com&AWS_REGION=sfo2&AWS_ACCESS_KEY_ID={xxx}&AWS_SECRET_ACCESS_KEY={xxx}';
Cheers.
you need to escape AWS_ENDPOINT prefixed with https protocol like
BACKUP INTO 's3://backups/myprefix?AWS_ACCESS_KEY_ID=xxx&AWS_SECRET_ACCESS_KEY=yyy&AWS_ENDPOINT=https%3A%2F%2Fnyc3.digitaloceanspaces.com%2F'
you need to escape AWS_ENDPOINT prefixed with https protocol like
BACKUP INTO 's3://backups/myprefix?AWS_ACCESS_KEY_ID=xxx&AWS_SECRET_ACCESS_KEY=yyy&AWS_ENDPOINT=https%3A%2F%2Fnyc3.digitaloceanspaces.com%2F'
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.