470,815 Members | 1,279 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

PHP and MySql database backup

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
1 1741
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.

Similar topics

3 posts views Thread by James | last post: by
4 posts views Thread by Neil | last post: by
4 posts views Thread by news | last post: by
4 posts views Thread by wzhao6898 | last post: by
reply views Thread by newman | last post: by
6 posts views Thread by frank78 | last post: by
7 posts views Thread by Randy | last post: by
4 posts views Thread by Bootstrap Bill | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.