What are the best ways to backup Debian-based VPS?
-
What is the best way to backup all my stuff, including configs, mysql databases, etc., on a Debian-based VPS?
-
Answer:
Since you are only worried about a single server, enterprise-style applications such as BackupPC and Amanda are probably overkill. You would be better suited with something simpler. I'll list a few of the common tools, then give some possible solutions: rdiff-backup - http://www.nongnu.org/rdiff-backup/ unison - http://www.cis.upenn.edu/~bcpierce/unison/ duplicity - http://duplicity.nongnu.org/ rsync - Available in the repo's. Any of the above can be scripted in bash. However, unless you need something fancy or really simple, it's probably easiest to use a script already written: For rsync - https://github.com/yhager/rsync_backup (I prefer this solution over rdiff-backup - see the author's README file for details) For MySQL - http://sourceforge.net/projects/automysqlbackup/ For file-level backup, not using rsync - http://simplebashbu.sourceforge.net Read over the tools at the top however and see if one of them would be a better fit for your scenario. When configuring your scripts, you just need to make sure you are backing up all of your important directories. Since you have a VPS and won't need to restore from your own custom image, you can leave some of those out. Here's what I would include: /etc /home /opt (if it's not empty) /root /srv /var You can either get another VPS to use for backup, or you can rent storage from the likes of http://rsync.net or tarsnap, to hold your backup files. You can set up SSHFS on your VPS to mount the remote filesystem so that the backup tools spool locally, and then need to set up a cron job to run whichever scripts you've chosen. http://Rsync.net has some good tutorials on how to do some of the above, and their service is rock-solid.
Ryan Kirk at Quora Visit the source
Other answers
Fredrik Pettersson
I recommend you R1Soft Enterprise. Keep in mind that the best backup location is the farthest. R1Soft is even better then rsync. With rsync you copy the changed files. R1Soft copies only the modified bits from the disk. Normally the price for the software is a big problem. (200$ for one physical server) However on http://www.backuprun.com/ you can have the R1Soft enterprise at 5euros/month and you'll also get 50GB of free storage. Additional storage will cost 0.04euros/month. And you will also have your backup far away from your data center so no matter what will happen to your server your data will be safe. Ah, several more things about r1soft: You can also syn mysql and integrate the backup into cPanel. You can even restore your entire server (from zero) easy and fast.
Sebastian Petrescu
I have found really simple decision - backup-manager. It allows you backup any files, mysql databases and repositories. After backing up it can automatically upload files to FTP, burn it on CD or even to Amazon S3 Cloud. http://www.backup-manager.org
Anonymous
My way, having AWS as home for my infrastructure, is to combine file backup to S3 with lifecycle management (Glacier) in combination with automatic snapshot management with scheduled create/delete. Using minimum of 3:rd party software instead using AWS services as much as possible.
Jonas Ek
Haven't tried tarsnap, but I imagine it could be compiled from source and run. I use it on FreeBSD and OpenBSD and it's great. Otherwise, duplicity?
Christopher Meiklejohn
Related Q & A:
- What are the best ways to advertise your Website?Best solution by Yahoo! Answers
- What are the best ways to search for jobs?Best solution by Yahoo! Answers
- What are the best ways to beat flu?Best solution by Yahoo! Answers
- What are the best ways to do marketing via internet?Best solution by Quora
- What are the best ways to find a job with a social entrepreneurial company?Best solution by answers.yahoo.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.