DigitalOcean has a droplet backup solution priced at 20% of the monthly cost of your droplet. Doesn't get much easier than that, if you can afford it. For a small droplet ($10/month) that's a full backup of everything for a buck a month. https://www.digitalocean.com/community/tutorials/understandi...
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
Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
61–70 of 94 posts
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#62Earlier quoted context omitted.
You can actually set up app folders in Dropbox so that a particular API key effectively chroots you to that folder. The attacker would only get the backups.
Which is literally the worst scenario. An attacker owns your box and now your backups.
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#63I use AWS S3 for this as the storage prices are so cheap, at $0.03 per GB. I recommend using a utility called s3cmd, which is a similar to rsync, in that you can backup directories. I just have this setup with a batch of cron jobs which dump my databases and then sync the directories to s3 weekly.
I use duply (a simpler CLI front-end to duplicity) for doing encrypted incremental backups to S3. The only annoying thing is that duplicity uses an old version of the boto s3 library that errors out if your signatures tar file is greater than 5gb unless you add `DUPL_PARAMS="$DUPL_PARAMS --s3-use-multiprocessing "` to your duply `conf` file. Took me days to figure that out.
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#64Earlier quoted context omitted.
You can actually set up app folders in Dropbox so that a particular API key effectively chroots you to that folder. The attacker would only get the backups.
Which is literally the worst scenario. An attacker owns your box and now your backups.
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#65Earlier quoted context omitted.
Which is literally the worst scenario. An attacker owns your box and now your backups.
How do you avoid that with any backup service?
Your master account (or superuser IAM account if you're paranoid) gives you read/write after 2FA login, but you could share your backup creds with the world and never have your backups pulled out or overwritten.
Use S3 lifecycle rules to expire backup objects after x days; data transfer in is free, the operation requests are pennies per thousand, only the bandwidth is expensive (10 cents/GB) to retrieve the backups when you need to perform a restore (even then, still very cheap).
Also, by storing in S3, you can backup and restore from anywhere.
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#66DigitalOcean has a droplet backup solution priced at 20% of the monthly cost of your droplet. Doesn't get much easier than that, if you can afford it. For a small droplet ($10/month) that's a full backup of everything for a buck a month. https://www.digitalocean.com/community/tutorials/understandi...
It's always good to have your backup off-site. If something happens to DigitalOcean servers, your backups will be gone too.
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#67Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#68I use AWS S3 for this as the storage prices are so cheap, at $0.03 per GB. I recommend using a utility called s3cmd, which is a similar to rsync, in that you can backup directories. I just have this setup with a batch of cron jobs which dump my databases and then sync the directories to s3 weekly.
Agree, s3cmd is simple and effective. I have written bash scripts to regularly take db dump and put it on S3. Same can be done for folders.
Here are the relevant docs: http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecy...
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#69Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#70If you're not using a modern Unix variant with ZFS... well there isn't a good reason why you would be.