Hey guys, I wish to backup my server on my personal computer.
What I want is to backup my http files and mysql databases.
What is the best way to do this? (i have ssh and whm access)
Thanks
Printable View
Hey guys, I wish to backup my server on my personal computer.
What I want is to backup my http files and mysql databases.
What is the best way to do this? (i have ssh and whm access)
Thanks
export the mysql databases ( either through mysql/mysqladmin or phpmyadmin ) and store on your pc ( they are just text files anyway )
backup the /etc/http.d/httpd.conf file and any other .conf which it loads
backup your /etc/php.ini file , /etc/php.d/*.ini or any other .ini loaded.
These are the main ones.
as for actual web files, you could simply go to the webroot ( or each one if neccesary )
tar zcf webbackup.tar ./*
this archives all the data from the current directory down
you can then download this file at your convenience. to restore, upload to same directory and
tar xzf webbackup.tar
Doesnt WHM have a backup create facility (last I checked)?
yeah, but ive never used that so i dont know what exactly it backs up lol.
It backs up mySQL and Website files, which can then be restored using the WHM restore feature. (All accounts that are added to wHM are backed up, along with the subdomain, dns etc stuff).
it is easy to use a cPanel backup system, but sometimes you will get a high server loads