Sunday, February 8, 2009

How to backup and what to backup in hypervm + openvz node

Important things to backup is
/vz/private folder where all the vps data stored
/etc/sysconfig/vz-scripts folder where all the vps config file stored
/var/lib/mysql/hypervm1_0 where all the config of the hypervm stored

Simply make a bash file with the following commands and set in the cron job.

cp -ar /vz/private /backup/vz/
cp -ar /etc/sysconfig/vz-scripts/ /backup/vz/
cp -ar /var/lib/mysql/hypervm1_0 /backup/vz/

Happy backing up :))

1 comment:

virtualizationmaster said...

To keep the process low while copying or it will kill the server resources
nice -n -20 cp -ar /vz/private /backup/

Virtuoso ;)