[CentOS] Backing up a centos serveR? how to ? Newbie question..

John Doe jdmls at yahoo.com
Mon Oct 19 11:16:29 UTC 2009


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/mysql

For mysql, I would use mysqldump instead of rsyncing the whole mysql directories...
Something like:
  mysqldump <DATABASE> | gzip -9 > <DATABASE>-<DATE>.gz

JD


      


More information about the CentOS mailing list