RoLaNd RoLaNd
2009-Oct-19 08:15 UTC
[CentOS] Backing up a centos serveR? how to ? Newbie question..
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/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20091019/c3548ff6/attachment-0002.html>
John Doe
2009-Oct-19 10:16 UTC
[CentOS] Backing up a centos serveR? how to ? Newbie question..
From: RoLaNd RoLaNd <r_o_l_a_n_d at 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/mysqlFor mysql, I would use mysqldump instead of rsyncing the whole mysql directories... Something like: mysqldump <DATABASE> | gzip -9 > <DATABASE>-<DATE>.gz JD
Hakan Koseoglu
2009-Oct-19 12:05 UTC
[CentOS] Backing up a centos serveR? how to ? Newbie question..
Hi Roland On Mon, Oct 19, 2009 at 9:15 AM, RoLaNd RoLaNd <r_o_l_a_n_d at 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. -- Hakan (m1fcj) - http://www.hititgunesi.org
Les Mikesell
2009-Oct-19 12:41 UTC
[CentOS] Backing up a centos serveR? how to ? Newbie question..
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. -- Les Mikesell lesmikesell at gmail.com
Per Qvindesland
2009-Oct-19 14:35 UTC
[CentOS] Backing up a centos serveR? how to ? Newbie question..
A really good place to find out info about the various raid levels and what their good for is here: http://www.acnc.com/04_01_00.html But please don't confuse raid with something like?Bacula :) Regards Per At Monday, 19-10-2009 on 16:28 "Bobby" wrote: 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 testedand> > 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 _______________________________________________ CentOS mailing list CentOS at centos.org http://lists.centos.org/mailman/listinfo/centos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20091019/1c3e4745/attachment-0002.html>