bashPenguin
Gawd
- Joined
- Jan 10, 2007
- Messages
- 607
Hi all,
Hoping one of you gurus can help me with this hypothetical handed down from up high (product management).
So imagine I have a generic Linux/*BSD install, and let's keep the partitioning simple. A /boot partition, and the / partition. The install boots and works correctly. Now, the person who wants to use this machine wants an emergency copy of the install that is basically a copy of the install at some point in time, so that in case they completely hose their main install, they can just boot into the copy.
What would be a good way to go about implementing such a system?
[Some considerations - the machine's installed software will not change much, basically once the machine is up the user only uses front ends to the system that abstracts functionality of the machine. They won't be installing software of their own onto it, though this wouldn't be too much a problem.]
I imagined a few scenarios, most involving just copying the directories, but the one that I think I'd like to implement would be this:
I'd copy the entire directory structure of the system in its pristine form (cp? tar and untar into the new partition? dd?), and for future syncing , use rsync from the primary partitions to the backup partitions when the user demands a copy be made. Also, modify the bootloader to recognize the other partition for booting.
However, I don't have much experience with something like this, so if anyone has implemented such a solution or knows another way that can be pretty fast or is better, let me know. If anyone uses an alternative solution (keeping a compressed copy around on some partition and then having something load it to recover a system) I'd like to hear it as well.
Thanks!
edit: I do have issues with such a feature, one being that I have to basically sacrifice half the hard drive for keeping a copy around.
Hoping one of you gurus can help me with this hypothetical handed down from up high (product management).
So imagine I have a generic Linux/*BSD install, and let's keep the partitioning simple. A /boot partition, and the / partition. The install boots and works correctly. Now, the person who wants to use this machine wants an emergency copy of the install that is basically a copy of the install at some point in time, so that in case they completely hose their main install, they can just boot into the copy.
What would be a good way to go about implementing such a system?
[Some considerations - the machine's installed software will not change much, basically once the machine is up the user only uses front ends to the system that abstracts functionality of the machine. They won't be installing software of their own onto it, though this wouldn't be too much a problem.]
I imagined a few scenarios, most involving just copying the directories, but the one that I think I'd like to implement would be this:
I'd copy the entire directory structure of the system in its pristine form (cp? tar and untar into the new partition? dd?), and for future syncing , use rsync from the primary partitions to the backup partitions when the user demands a copy be made. Also, modify the bootloader to recognize the other partition for booting.
However, I don't have much experience with something like this, so if anyone has implemented such a solution or knows another way that can be pretty fast or is better, let me know. If anyone uses an alternative solution (keeping a compressed copy around on some partition and then having something load it to recover a system) I'd like to hear it as well.
Thanks!
edit: I do have issues with such a feature, one being that I have to basically sacrifice half the hard drive for keeping a copy around.