You might ask why not just use the PSA backup utilities. Well, if you're using V7 of PSA right now, those won't work for you! And, even with 6, the PSA backup utilities are slow and just not that effective as a regular backup solution.
So, this HOW-TO will help you install sysbk and configure it for plesk.
STEP 1 - Download and Install SysBK
SSH into your server as root and change to your downloads folder, or wherever you download source / installer files:
CODE
cd /root/downloads/
wget [url]http://rfxnetworks.com/downloads/sysbk-current.tar.gz[/url]
cd sysbk-1.0
./install.sh
wget [url]http://rfxnetworks.com/downloads/sysbk-current.tar.gz[/url]
cd sysbk-1.0
./install.sh
STEP 2 - Configure SysBK
CODE
cd /usr/local/sysbk
pico -w conf.sysbk
pico -w conf.sysbk
Make the following modifications:
Change MAX_LOAD to 5 (if you want, this is optional, see note #1)
Change HTTP_BK to 1
Change BIND_BK to 1
Change MYSQL_BK to 1
Change MYSQL_ROOTPW to your MySQL root password to your admin password for Plesk.
Change CUSTOM_BK to 1
Edit the /usr/local/sysbk/mod/custom.dirs and put the following directories in it:
CODE
/usr/local/psa
/home/httpd
/var/lib/qmail
/var/named
/etc
/home/httpd
/var/lib/qmail
/var/named
/etc
If you want to backup other folders, just add their full path.
Save and exit.
Unless you changed the backup folder, make sure /home/backups exists. I just add the user and set a password to it. You can make the directory by executing:
You should now be able to run sysbk, by executing:
CODE
/usr/local/sysbk/sysbk -s
If you are asked continously for your MySQL password during the MySQL backup stage, please check your password in /usr/local/sysbk/sysbk.conf
Note 1 - I use 5, but my load really never gets that high. If you want to use something lower or higher its fine. R-fx's default is 2, but if you have a load of 2 continously your backup may not run!
This is my first HOW-TO in EV1's forums, so if there are any corrections that need to be made please let me know!