View Full Version : best way to backup/save database
SPEEDKILLZ
09-05-2012, 01:24 AM
As the title says how and what is the best way to save or backup my database with cpanel? Thanks
snakes1100
09-05-2012, 02:55 AM
The best way to backup a database is via the cmd line, using mysqldump, if you shell/ssh access to the server.
You should have no issue using the built in backup program via cpanel.
Using anything related to php is not suggestible as it can timeout when running a php script for a long time, depending on the size of the db, the setting for max_execution_time should be adjusted to a large timeout if your doing them via a script or a program such as phpmyadmin.
SPEEDKILLZ
09-05-2012, 03:09 AM
Thanks, so what are the steps? Where do i go to save db to my
snakes1100
09-05-2012, 03:25 AM
Steps for what cpanel backup or ssh backup?
SPEEDKILLZ
09-05-2012, 03:58 AM
Cpanel or both
snakes1100
09-05-2012, 04:05 AM
There are hundreds of tutorials that you can find on google.
betterthanyours
09-06-2012, 07:22 AM
In cPanel it's easy. Click backups and then click the db you want to backup and download it. Simples.
for CLI:
backup: # mysqldump -u root -p[root_password] [database_name] > dumpfilename.sql
restore:# mysql -u root -p[root_password] [database_name] < dumpfilename.sql
Disco_Dave
09-06-2012, 07:43 AM
I find this the best method:
https://vborg.vbsupport.ru/showthread.php?t=231481
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.