Disc image cloning backup solution ?
I have just joined in and am thinking about a bomb-proof backup solution. I noticed you can create a disk image copy and keep it in your reserve space.
However can one download and upload it? And how if so?
What cronable command can do this disk cloning from cronjob?
Any there any better ideas?
Thank you in advance
2 Replies
First of all, you need to shut down your linode whenever you do the cloning, because otherwise some files will change in the middle of the cloning and cause inconsistencies in your filesystem. Do you really want to shut down your linode every day/week/etc just to clone your disk image?
Second, it's a ridiculous waste of space and bandwidth to produce a copy of your entire server every day/week/etc and download it. On most servers, very little data actually changes between those backups. So you'll be cloning and downloading gigabytes upon gigabytes of data that you already have copies of.
In addition, I don't think it would be possible to handle disk cloning with cron, because cron runs inside your linode and disk cloning is done outside of it. (As I said above, you need to shut down your linode first. How would you run cron, or anything else for that matter, when your server is powered off?)
Linode seems to have a backup solution in the works, but nobody here knows when it will be released.
Best solution: learn to use rsync or any of its useful derivatives, such as rdiff-backup or rsnapshot. Use it regularly from your home machine, or better yet, from one of those excellent $15/month backup services. Or maybe using Amazon S3.
this guide