RE: [PHP] backing up a database

2006-11-29 Thread Kristen G. Thorson
> -Original Message- > From: James Tu [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 28, 2006 5:03 PM > To: PHP General List > Subject: Re: [PHP] backing up a database > > Thanks Brad: > > I'm just surprised that when people mention mysqldump, mo

RE: [PHP] backing up a database

2006-11-28 Thread Warren Vail
ssage- From: Chris [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 2:50 PM To: James Tu Cc: PHP General List Subject: Re: [PHP] backing up a database James Tu wrote: > Thanks Brad: > > I'm just surprised that when people mention mysqldump, most of the time > they do

Re: [PHP] backing up a database

2006-11-28 Thread Chris
James Tu wrote: Thanks Brad: I'm just surprised that when people mention mysqldump, most of the time they don't talk about locking the tables at all. I'm curious why this is the case. Because you don't need to. More of a mysql-mailing list question to be honest. -- Postgresql & php tutori

Re: [PHP] backing up a database

2006-11-28 Thread James Tu
Thanks Brad: I'm just surprised that when people mention mysqldump, most of the time they don't talk about locking the tables at all. I'm curious why this is the case. -James Does one need to lock(?) MySQL before running mysqldump? Or will the mysqldump command wait for any pending operat

RE: [PHP] backing up a database

2006-11-28 Thread Brad Fuller
> -Original Message- > From: James Tu [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 28, 2006 1:21 PM > To: PHP General List > Subject: Re: [PHP] backing up a database > > Does one need to lock(?) MySQL before running mysqldump? > Or will the mysqldump comm

Re: [PHP] backing up a database

2006-11-28 Thread James Tu
Does one need to lock(?) MySQL before running mysqldump? Or will the mysqldump command wait for any pending operations to finish, lock the tables for dumping and once finished release the lock? -James On Nov 27, 2006, at 2:21 AM, David Robley wrote: Sumeet wrote: Brad Fuller wrote: $com

Re: [PHP] backing up a database

2006-11-26 Thread David Robley
Sumeet wrote: > Brad Fuller wrote: > >> $command = "mysqldump -u $dbuser -p$dbpass $dbname | gzip > >> $backupFile"; >> >> system($command); >> >> > > what if system() has been disabled on the server? > SELECT INTO OUTFILE 'file_name' export_options seems a useful alternative. Cheer

Re: [PHP] backing up a database

2006-11-24 Thread Sumeet
Brad Fuller wrote: $command = "mysqldump -u $dbuser -p$dbpass $dbname | gzip > $backupFile"; system($command); what if system() has been disabled on the server? -- Thanking You Sumeet Shroff http://www.prateeksha.com Web Designers and PHP / Mysql Ecommerce Developm

Re: [PHP] backing up a database

2006-11-22 Thread Richard Lynch
On Wed, November 22, 2006 3:53 am, Ross wrote: > I have a database and it needs to get backed up on a daily basis. Is > there a > class that allows me to create a backup and then save it as a .sql or > excel > or both to a folder of her choice? I personally would not involve PHP in this process, i

Re: [PHP] backing up a database

2006-11-22 Thread Børge Holen
t; -Original Message- > > From: Brad Fuller [mailto:[EMAIL PROTECTED] > > Sent: 22 November 2006 14:28 > > To: 'PHP General List' > > Subject: RE: [PHP] backing up a database > > > > > > > > Here is a script that I found that has been

RE: [PHP] backing up a database

2006-11-22 Thread Edward Kay
wouldn't offer any more protection than just saving it locally. (My remote FTP location is in a different continent!) Edward > -Original Message- > From: Brad Fuller [mailto:[EMAIL PROTECTED] > Sent: 22 November 2006 14:28 > To: 'PHP General List' > Subject: R

RE: [PHP] backing up a database

2006-11-22 Thread Brad Fuller
$ok = @mail($email_to, $email_subject, $email_message, $headers); if($ok) { echo date("Y-m-d H:i:s") . " Operation completed.\n"; } else { die(date("Y-m-d H:i:s") . " Operation failed - The e-mail

RE: [PHP] backing up a database

2006-11-22 Thread Edward Kay
php.net > Subject: [PHP] backing up a database > > > I have a database and it needs to get backed up on a daily basis. > Is there a > class that allows me to create a backup and then save it as a > .sql or excel > or both to a folder of her choice? > > > R. >

Re: [PHP] backing up a database

2006-11-22 Thread Jochem Maas
Ross wrote: > I have a database and it needs to get backed up on a daily basis. Is there a > class that allows me to create a backup and then save it as a .sql or excel > or both to a folder of her choice? I'm only helping cos there's a chick involved. ;-) the easiest solution would be to use a

Re: [PHP] backing up a database

2006-11-22 Thread clive
Ross wrote: I have a database and it needs to get backed up on a daily basis. Is there a class that allows me to create a backup and then save it as a .sql or excel or both to a folder of her choice? cron and mysqldump or pg_dump -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] backing up a database

2006-11-22 Thread Ross
I have a database and it needs to get backed up on a daily basis. Is there a class that allows me to create a backup and then save it as a .sql or excel or both to a folder of her choice? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] PHP Backing up a Database?

2001-11-18 Thread Joe Stump
This is what you'll want to do: 0 0 * * * /path/to/mysqldump -u[username] -p[username] [database] > /path/to/backup.sql Put that above in your crontab (you might want to tar/gzip it too if it's big) then download it via cron to your local box. You could also look into rsync. --Joe On Sat, Nov

RE: [PHP] PHP Backing up a Database?

2001-11-17 Thread Jack Dempsey
mysqldump check it out, either man or google then ftp that file down, load it wherever, and mysql database < dump.sql jack -Original Message- From: cosmin laslau [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 17, 2001 5:25 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP Backing u

[PHP] PHP Backing up a Database?

2001-11-17 Thread cosmin laslau
Hi, Say I'm not really confident in the prowess of my server, and I want to download my database onto my computer. Can that be done? What can I look (FTP access) in the directory structure. I guess, where is it usually located? Thanks. Cosmin Laslau _