How to backup Spaces?

May 12, 2018 1.8k views

How can I backup the data on a Space? There are many articles on backing up TO a space but if the space if your primary storage, is there an easy way to snapshot/copy a space?

2 Answers

Yes. The s3cmd tool which can be used with spaces has the option --recursive that will allow you to download an entire bucket locally. You can find some examples here.

There are also options that will allow you to mount your Space on your computer. Once mounted you would be able to use any backup solution that allows you to back up files on your computer.

Was also wondering about this. We consider Digital Ocean Spaces to store all our static project files like .css m .js, .jpg, .png and so on. But when we do we would like to be able to backup that data as well. @ryanpq mentions backing up locally, but we basically look for an option to automate backing up a Space to another server location.

Have another answer? Share your knowledge.