Automate Backup - 404 Error

May 11, 2018 307 views
Backups Ubuntu

I am trying for Automate backups with digital ocean space referring the following link

https://www.digitalocean.com/community/tutorials/how-to-automate-backups-digitalocean-spaces

But when I am trying to upload the backupthis directory and its contents to Space it shows,

upload: 'testrun-180511-155943.tar.gz' -> 's3://vamotest/testrun-180511-155943.tar.gz' [1 of 1]
166 of 166 100% in 0s 5.15 kB/s done
ERROR: S3 error: 404 (NoSuchBucket)

How can I resolve the error ??

2 Answers

Did you create the bucket/directory you are using when running the backup script in Spaces before attempting a backup?

Check your s3cmd config file. I had the same issue but the config was wrong. The host_bucket var remained untouched. Therefore there was an issue. After fixing that, it works.

ORIGINAL
hostbase = ams3.digitaloceanspaces.com
host
bucket = %(bucket)s.nyc3.digitaloceanspaces.com

CORRECTED
hostbase = ams3.digitaloceanspaces.com
host
bucket = %(bucket)s.ams3.digitaloceanspaces.com

Have another answer? Share your knowledge.