Here's a method we're investigating; note that we haven't tried it yet.
We use CentOS; this can probably be done with other OS Distributions but we don't know any of the details with them.
This method requires that your server have a USB port and that you have a flash-drive formatted as ext3 (5GB is what we're experimenting with; significantly less is probably fine).
1) Create a new CentOS installation on a new server, creating a kickstart file to save your drive partition information. We use a minimal CentOS install and then install other packages with yum; you should install what you're comfortable with.
2) Save the kickstart file somewhere safe (on a different flashdrive?).
3) Create a complete DirectAdmin installation on the new server, add all you usually add, make all changes you usually make.
4) mount the flashdrive you're going to use to create the drive image.
5) Using the mv command:
Code:
# cd /
# mv * /path/to/flashdrive/
6) now you can remove/throw-away/decommission/whatever that new server.
Then of course make regular backups of your working DA server: use either the reseller backups, the admin reseller backup, or the sysbk backup; whichever you're most familiar with.
Then, when you need to do a baremetal restore:
1) Create CentOS on the server being restored, using the kickstart file you created earlier. Plug in (and mount as required) the flashdrive containing your drive image.
2) Using the mv command:
Code:
# cd /path/to/flashdrive/
# mv * /
3) restore your most recent backup. If you've used reseller backups, you may need to recreate the resellers manually first, and then restore the resellers first, before restoring their users.
Note that this is a work in progress, and some of these points are oversimplified.
If you've got a better idea, please tell us
.
Jeff