View Full Version : How to backup SQL data?
c3tr4
02-02-2005, 12:57 AM
How can I backup all my SQL databases?
Viper007Bond
02-02-2005, 02:31 AM
Use phpMyAdmin export the data. You'll have to do it for each database.
Mr. Popularity
02-21-2005, 01:18 AM
Whats the phpmyadmin like in cpanel these days?
Here's an easy way to do it if you have shell access:
mysqldump -uDBUSERNAME -pDBPASSWORD dbname > outputfile.sql
You can even write a BASH script to have crontab make a backup (daily, weekly, monthly) of a database and format the filename by date: such as:
2005.02.28-blah.sql
Then you just forget about it and let the wonderful world of CRONTAB do it all for you :)
Silmaril8n
02-21-2005, 12:10 PM
Yes - throw that line into a Cron entry. There's tons of places on this forum that offer smiliar methods of howt o backup, compress, and then email to an offsite email account.
HRWahid
03-23-2005, 02:53 PM
Whats the phpmyadmin like in cpanel these days?
Here's an easy way to do it if you have shell access:
mysqldump -uDBUSERNAME -pDBPASSWORD dbname > outputfile.sql
You can even write a BASH script to have crontab make a backup (daily, weekly, monthly) of a database and format the filename by date: such as:
2005.02.28-blah.sql
Then you just forget about it and let the wonderful world of CRONTAB do it all for you :)
I do also prefer backing up the database via SSH using the mysqlDUMP command
Once you dump it make sure you download it onto your home computer as a precaution. :)
Grant29
04-04-2005, 09:09 PM
How can I backup all my SQL databases?
If you are comfortable with CRON jobs, check out: http://sourceforge.net/projects/automysqlbackup/
You can use it to automate daily, weekly, and monthly backups. Works great for my on my HR accounts.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.