Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
1–10 of 94 posts
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#2* rsyncs the directories containing the files you want to back up
* mysqldumps/pg_dumps your databases
* zips/gzips everything up into a dated archive file
* deletes the oldest backup (the one with X days ago's date)
Put this program on a VPS at a different provider, on a spare computer in your house, or both. Create a cron job that runs it every night. Run it manually once or twice, then actually restore your backups somewhere to ensure you've made them correctly.
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#3Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#4Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#5We basically create a backup folder (our assets and MySQL Dump, then rsync it to rsync.net). Our source code is already on git, so basically backuped on Github, and all developers computer.
On top of it, rsynch has a very clear and simple documentation to implement it very quickly with any Linux distrib.
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#6Stupid simple and stupid cheap. Install, select directories you want backed up, set it and forget it.
All for $7.00 a month.
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#7Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#8Make sure you check the status of backups, I send journald and syslog stuff to papertrail[0] and have email alerts on failures.
I manually verify the back-ups at least once a year, typically on World Back-up Day [1]
[0] https://papertrailapp.com/ [1] http://www.worldbackupday.com/en/
Re: Ask HN: How do you back up your site hosted on a VPS such as Digital Ocean?
#9What type of site is it?