Hi all,
excuse my newbie question but how can i backup my centos server?
i have a dozzen of virtual hosts over it as well as substantial database entries..
i've backed up the following directories using rsync:
workspace/ /etc/httpd/ /etc/apache-tomcat-6.0.20/ /usr/lib/mysql/ /var/lib/mysql
though i'm still not at ease with this, so i decided to do a some sort of clone or something to move this server to a VMWARE which i will turn on when needed (if main server failed)
any advice on how to do so ?
i've looked around and tried using "clonezilla" though that didn't work with me, i guess i mustve done something wrong... each time i try to boot from the cloned image of the local disk (which in turn cloned to the VM's local disk) it gives an error bout root records...
so any other way ?
any sort of help is greatly appreciated :)
thanks and best regards,
Roland
_________________________________________________________________ Keep your friends updated—even when you’re not signed in. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/soc...
From: RoLaNd RoLaNd r_o_l_a_n_d@hotmail.com
excuse my newbie question but how can i backup my centos server? i have a dozzen of virtual hosts over it as well as substantial database entries.. i've backed up the following directories using rsync: workspace/ /etc/httpd/ /etc/apache-tomcat-6.0.20/ /usr/lib/mysql/ /var/lib/mysql
For mysql, I would use mysqldump instead of rsyncing the whole mysql directories... Something like: mysqldump <DATABASE> | gzip -9 > <DATABASE>-<DATE>.gz
JD
may be rsync help You Or u can try raid 0[mirrorig] for replicate failover triying drbd and heartbeat but I've tested and unsuccessfull on my zimbra machines
Regards, David ------------------------------------------------------------------------ ./nobody
John Doe wrote:
From: RoLaNd RoLaNd r_o_l_a_n_d@hotmail.com
excuse my newbie question but how can i backup my centos server? i have a dozzen of virtual hosts over it as well as substantial database entries.. i've backed up the following directories using rsync: workspace/ /etc/httpd/ /etc/apache-tomcat-6.0.20/ /usr/lib/mysql/ /var/lib/mysql
For mysql, I would use mysqldump instead of rsyncing the whole mysql directories... Something like: mysqldump <DATABASE> | gzip -9 > <DATABASE>-<DATE>.gz
JD
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Monday 19 October 2009 08:56:48 RedShift wrote:
David Suhendrik wrote:
may be rsync help You Or u can try raid 0[mirrorig] for replicate failover triying drbd and heartbeat but I've tested and unsuccessfull on my zimbra machines
RAID IS NOT A BACKUP.
I repeat.
RAID IS NOT A BACKUP.
Nor is replication.
Exactly. RAID above RAID 0 does provide redundancy towards hard disk errors. It makes the system more robust. But the data is still in the same set of drives. Backup, as with scp, rsync and cron to a different computer is what you need. We backup our computers every hour with the above. It's very low impact and all we can loose are some changes in the last two hours if the system dies during rsync.
David, RAID 0 is not mirroring. What it does is extend capacity over two or more drives. RAID 1 is mirroring.
Bobby
Hi Roland On Mon, Oct 19, 2009 at 9:15 AM, RoLaNd RoLaNd r_o_l_a_n_d@hotmail.com wrote:
excuse my newbie question but how can i backup my centos server?
We use Mondo Rescue (www.mondorescue.org/) and it works perfectly providing bare-iron recovery. We tend to use tape drives to back up our application and database (Oracle) and DVDs created by Mondo for everything else. Works perfectly with RHEL and CentOS. Recently I had some issues with recovering latest Dell servers like R900 or R710 series but after a bit of fiddling and extra commands to recognise external enclosures, they always ended up being recovered w/o any issues.
RoLaNd RoLaNd wrote:
Hi all,
excuse my newbie question but how can i backup my centos server?
i have a dozzen of virtual hosts over it as well as substantial database entries..
i've backed up the following directories using rsync:
workspace/ /etc/httpd/ /etc/apache-tomcat-6.0.20/ /usr/lib/mysql/ /var/lib/mysql
though i'm still not at ease with this, so i decided to do a some sort of clone or something to move this server to a VMWARE which i will turn on when needed (if main server failed)
any advice on how to do so ?
i've looked around and tried using "clonezilla" though that didn't work with me, i guess i mustve done something wrong... each time i try to boot from the cloned image of the local disk (which in turn cloned to the VM's local disk) it gives an error bout root records...
Can you be more specific about the error message? This should be like any other case of moving linux to different hardware. If the disk drivers don't match what is installed you have to rebuild the initrd with correct drivers. Or, the quick-fix is to boot from a live CD and copy the contents of /boot over from a machine (or VM) where the same version was installed on the same real or virtual hardware.
so any other way ?
If you are going to VMware, you can probably use the vmware converter program that you can download for free. It will convert a running machine to a vmware image file or from one version of vmware to another, including the ESXi server where you don't have normal access to the filesystem.