Trixbox Backup Using Mondorescue
The following are the steps required to make a complete system backup of trixbox 2.0 and restore the backup to a fresh hard drive. This is a full system state backup and all settings and the complete OS will reinstall. To make the backup and restore a little simpler I will only use Mondo and Mindi to make the ISO image and then move the images to a windows machine to burn the CDs. I have accomplished so much from the community posts and I had not found a good step by step solution to do a complete backup and restore. I hope this helps and please be kind if I say something wrong here. I am not as accomplished as most.
The first step is load a trixbox 2.0 machine and configure it to your liking. I wont go thru that setup here. Once you have the system completely updated and working its time to download mondo and associated packages. Centos4/trixbox uses the same rpm builds that red hat 4 uses, so go to the following site and download the following packages.
ftp://ftp.mondorescue.org/rhel/4 (IMPORTANT) You must download the versions I have on this list. As of 4-13-07 the newest releases of mindi don’t work and the newest release of mondo requires the newest release of mindi. Make a new dir for your downloads.
I download all my stuff to /tmp/downloads. From the directory issue the following.
wget ftp://ftp.mondorescue.org/rhel/4/mondo-2.2.0-2.rhel4.i586.rpm
this will download the correct version of mondo
wget ftp://ftp.mondorescue.org/rhel/4/mindi-1.2.0-2.rhel4.i586.rpm
this will download the correct version of mindi
wget ftp://ftp.mondorescue.org/rhel/4/mondo-doc-2.2.0-2.rhel4.noarch.r...
this is the docs for mondo.
wget ftp://ftp.mondorescue.org/rhel/4/mindi-busybox-1.2.2-2.rhel4.i586...
this is the GUI for mindi
wget ftp://ftp.mondorescue.org/rhel/4/afio-2.4.7-1.i586.rpm
this archives or something not sure
wget ftp://ftp.mondorescue.org/rhel/4/buffer-1.19-1.i386.rpm
this I guess buffers tape writing. Don’t know if this is used from what I am doing but I had it installed anyways.
Now you should have all six rpms neat in you download directory. Its time to install them
You can issue a command to load them all at once but you might run into problems so we will install them one at a time. Run the following one at a time.
rpm –ivh afio-2.4.7-1.i586.rpm
rpm –ivh buffer-1.19-1.i386.rpm
rpm –ivh mindi-busybox-1.2.2-2.rhel4.i586.rpm
rpm –ivh mindi-1.2.0-2.rhel4.i586.rpm
rpm –ivh mondo-2.2.0-2.rhel4.i586.rpm
rpm –ivh mondo-doc-2.2.0-2.rhel4.noarch.rpm
****************UPDATE**4-15-07***THANKS**STUCKER***************
*** You must install cdrecord on your system with the following command*****
****yum -y install cdrecord ***Forgot I did that too or it will tell you to install**
****I also changed the order of rpm install so they would install correctlly*****
******************************************************************
That should of installed them all. When I installed I did it all at once so if you run into dependency problems just install whatever it tells you to before the order I put it in.
Ok now that everything is installed it would also be a good idea to download a couple more tools. I use putty to log into all of my servers and I have gotten much better at using the command line but I get a little lazy some times and WinSCP3 is great for this. So it would be a great idea to download both. WinSCP3 will allow you to log into your server and copy files from the server right to your windows desktop. This is important when you create the ISOs and want to move them to your windows machine to burn
OK now its time to try out the newly installed mondo. When you run the following command mondo will backup your system and use mindi to create the iso images or something like that. You have to create a directory to put the new ISO images in and the command will put them in the directory. I used /backup. Run the following command.
mondoarchive -OVoi -F -d /backup
If all goes well your system should start making the backup. Depending on the size of your drives and the speed of your machine it will take a few minutes. I have 160GB SATA drive, 3.2Ghz P4 and 1Gig of ram and mine took about 15 min.
When mine finished I had 2 ISO images in the /backup directory one was about 690M and the other was 90M. It should always make the images a size that will fit on a cd and you may have to burn more than one. Mondo will also create a boot image and tell you where it is when mondo finishes. It should be in /root/images/mindi/ directory and it will be called something like mondorescue.iso
So at this point if everything worked you will have ISO images in the /backup directory and 1 in the /root/images/mindi/ directory. Now you have to move them to your windows machine if you are not comfortable burning them under linux.
Use WinSCP3 to login to your trixbox machine and copy the .iso images to the desktop of your windows machine that has a burner.
I use Nero to burn my CDs but you can use whatever you are comfortable with. I burned all three cds and hoped for the best.
Its time to test the burned CDs on a fresh hard drive that you will now put in place of the drive that you just backed up. I don’t know how giving mondo is with changing out hardware other than the hard drive. With that in mind make sure you plug in the new drive in the same SATA or IDE slot with the same jumper config as the one you backed up. Insert the mondorescue boot cd first. When it boots you will have some choices, Just choose nuke or automatic if given the option. After it boots you may see some errors related to floppy drive. I did probably because I didn’t have one installed and its not needed. If you come to an. I also ran into some formatting errers but it had me reboot and the second time around it worked fine. If you are given a GUI that asks what you want to do also just choose to boot from CD-R and it should soon ask you for your 1st and if you have more than one your second main system backup disk. The restore process takes about 20 to 30 minutes or it did for me. When it finishes it will tell you to pull the cd out and it will take you to a # Remove the CD and type in exit and your system will reboot. Now its time to cross your fingers. If you made it this far the chances are good you will have a completely restored system when it reboots.
My system came right up after this and it was completely the same as it was on the drive I had backed up. I have yet to notice one bit out of place.
I hope this helps. If you want to know more about mondo it’s a good idea to visit the mondo website at www.mondorescue.org There are many more options to have your system burn its own CDs and you can also create cron jobs to have the created images back up remote.
Damien

Member Since:
2007-01-19