Skip to content

Comment on Don't use Digital Ocean (DO) for production

Comments

This post made me think about the personal DO droplets I have and how I’m backing them up. I’m currently using the built in back up feature…but that doesn’t protect against DO preventing me from accessing my backups.

What does everyone do to easily and automatically back up their side project droplets offsite?

I have a daily CRON job, a simple script that backup the database with `pg_dump` and send the file to an S3 bucket (keeping the last X files) and also use `rclone` to sync my files on "Spaces" (DO clone of S3) to an S3 bucket.

It's supposed to be a last resort kind of backup as I also use DO backup solution (managed database) but seeing how they can close an account out of nowhere, it ain't worth nothing.

I hope you periodically restore the off-premises backup to check they're working too. Not really fun to discover your backup is broken when you need it the most.

I admit I don't check them often enough, but I did makes sure to verify after this post!

Thanks! That's super helpful!

Daily database dumps to a folder, followed by a rsync (database and users' files) to a 3rd party backup services (rsync.net). I used backblaze b2 in the past, but found that accessing historical backup data is easier on rsync.net. Just a simple sftp into the snapshot directory.

Rclone

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.