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

Mon Oct 19 10:16:29 UTC 2009
John Doe <jdmls at yahoo.com>

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