Remember to have automated restore testing that validates restores are successful and the data "freshness" is within a reasonable period of time, such as last updated record in a database. Lots of people only do a full test of their backup solution when first installing it. Without constant validation of the backup->restore pipeline, it is easy to get into a bad situation and not realize it until it is too late.
Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
81–90 of 94 posts
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#82My main site runs a complex series of workers, CGI-scripts, and deamons. I can deploy them from scratch onto a remote node via fabric & ansible.
That means that I don't need to backup the whole server "/" (although I do!). If I can setup a new instance immediately the only data that needs to be backed up is the contents of some databases, and to do that I run an offsite backup once an hour.
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#83I see lots of great suggestions for backup hosts and methods, but I don't see anybody addressing encrypting said backups. I'm uncomfortable with rsync.net / Backblaze / etc having access to my data. What are some good ways to encrypt these multiple-GB backups before uploading them to a third-party backup server?
Check this https://github.com/backup/backup
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#84Earlier quoted context omitted.
Check this https://github.com/backup/backup
That looks really nice, thanks. However, I've sworn off Ruby as installing and maintaining the whole Gems stack is such a pain. I'd rather write a shell script, or conjure up some Python.
EDIT: After a few minutes of warming the CPU, Ruby failed but at least with an informative error message.
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#85Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#86I don't know what the OP is running OS wise but if it's any modern Unix variant it uses ZFS. And a simple ZFS send/receive would be perfect. There are tons of scripts for that and replication. If you're not using a modern Unix variant with ZFS... well there isn't a good reason why you would be.
I am amused by your subtle-ish attempts to brand Linux as "not modern".
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#87Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#88Backup ninja. It handles backing up to remote servers via rdiff, so I have snapshots back as far as I need them. The remote server is on another provider. As long as I have SSH login via key to the remote server enabled, ninja backup will install the dependencies on the remote server for me.
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#89Earlier quoted context omitted.
Is 20% of $10 a $1.00?That said, if you have a small application, I would pay DO to pack it up. They have global servers & imaging/snapshots. Your app would prob be good if you can get away with that kind of hosting. I do believe you can take images and snapshots and download them, so using the api, a user could prob rig up a script to make it refundant if it was mission critical
I don't think that separating your hosting and backup providers is only necessary for "mission critical" things. If you don't have at least three copies of some data, in at least two distinct physical locations/services then it doesn't exist.
I do agree though. If the answer to the question, "if this data disappeared, would I be more than slightly miffed?" Is not, NO! Then dumping the data offsite makes sense.
The most inportant thing (which I, and many other make the mistake of) is not only backing it up-- but testing restore time.
If you have your entire database on AWS long-term tape storage, it may not even serve utility. If you can't restore a backup in the timeframe nec, then it is essentially the same as having no backup at all