Answer the question
In order to leave comments, you need to log in
How to restore a home server from a backup with a minimum of effort?
Hello,
I'm a developer and many of my hobbies revolve around computers. In particular, for my various crafts at home, I have a small server running on old hardware. The specificity of probably any personal home server is the abundance of various trifles scattered over it, services of various directions, for example, MySQL and PostgreSQL, or RoR and Django applications in the neighborhood on one home machine - this is normal; which you will not find in adult production, where the pieces of iron have their own specialization and the quick commissioning of a new node is a regular procedure.
Some of the data on my server, as it should be, is of very significant value to me, and it would be a pity to lose it.
That's why I make backups. I make backups with Duplicityand store them on the NAS. I arrange small exercises for myself periodically, checking the procedure for restoring from backups and the integrity of backups, the ability to restore the database from dumps, the presence of configs and all that. I do this when I happen to have a small piece of free time. And now I’m getting to the heart of the matter: manually restoring even a small part of my small zoo from a backup is a very dreary procedure, which, if there is not enough time, can take (I’m talking about a full restore) - several evenings ...
So, the initial data:
Answer the question
In order to leave comments, you need to log in
you raise everything in openvz containers, and there we simply make a backup of the vzdump system, restore it via vzrestore.
you can install proxmox and do it through the web interface
The simplest is, of course, virtual machines, or, as advised above, puppet and other configuration management programs.
There is also such a thing as Stage4 - it's just an archive of the installed system. Somewhere I met a description of how to do it for Debian and CentOS
Here is an example for Gentoo: www.gentoo-wiki.info/HOWTO_Custom_Stage4 Deploying
the system to exactly the same server from where the snapshot was taken for about 10 minutes.
For the same one - about 5 minutes because the poppy addresses of the network cards do not change :) This is for an 80 gig screw with 6 partitions.
Of course, you can write a script for auto-deploying all this to the target server, but at that time I hadn’t figured out what to do with network cards yet, you can simply enter into it just auto-raise interfaces and configure.
Raising the server will be even faster if you do not cut the disk into many partitions :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question