By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,719 Members | 1,278 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,719 IT Pros & Developers. It's quick & easy.

PHP and MySql database backup

P: n/a
I have an internet portal based on MySql database and what I need is
to make a database backup , after each actualization of data.

I know how should PHP code look like but I have no idea how to create
SQL command that will backup full database.

I know that this group does't concern MySql directly but lots of PHP
programmers have wide knowledge of MySql.

I will be grateful for help.

Greetings

Konrad
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 11 Oct 2004 05:55:06 -0700 (more or less), ko***@eranet.pl (Konrad) wrote:
I have an internet portal based on MySql database and what I need is
to make a database backup , after each actualization of data.

I know how should PHP code look like but I have no idea how to create
SQL command that will backup full database.

I know that this group does't concern MySql directly but lots of PHP
programmers have wide knowledge of MySql.

I run this script from cron every night:

$ more sql-backup.sh
export test2
declare test2=`date|cut -c 1-3`
/usr/local/mysql/bin/mysqldump --all-databases -ppassword |gzip >
/var/backups/all_databases_$test2.sql.gz

but I found a lot of php based solutions at

http://www.google.com/search?sourcei...P+MYSQL+BACKUP
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.