RE: backup script

2003-02-22 Thread Don Read
On 19-Feb-2003 Jeff Mao wrote: > Greetings all, > > Not sure if this is the right place to ask this,...I use the > following script on an OS X server to backup my mysql databases: > > #!/bin/sh > DATE=`/bin/date +%Y%m%d"_"%H%M%S`; > cd /Users/usernmae/Documents; > /usr/bin/mysqldump -hhost -u

Re: backup script

2003-02-19 Thread Sigurd Urdahl
Jeff Mao <[EMAIL PROTECTED]> writes: > Greetings all, > > Not sure if this is the right place to ask this,...I use the following > script on an OS X server to backup my mysql databases: > > #!/bin/sh > DATE=`/bin/date +%Y%m%d"_"%H%M%S`; > cd /Users/usernmae/Documents; > /usr/bin/mysqldump -hho

Re: backup script

2002-08-27 Thread Terence
You need a combo of cron jobs (man crontab) and use either mysqldump or mysqlhotcopy. cron: * 3 * * * script ./mysqldump --opt -A > -u this is just one of the many ways. - Original Message - From: "Ilyas Keser" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 27, 2

Re: Re: backup script

2002-08-26 Thread conquer
Mark Stringham : i think that you can use task plan on windows.such as, backup.bat: mysqldump -uroot -pmysql databasename tablename > tablename.sql move tablename.sql d:\where you want store it\ and add a tast plan in control panel, set the time to 3 o'lock, set the

Re: backup script

2002-08-26 Thread Dicky Wahyu Purnomo
Pada Mon, 26 Aug 2002 20:37:46 -0600 "Mark Stringham" <[EMAIL PROTECTED]> menulis : > Anyone done it on widows? > > Thanks > > Mark for dumping, the syntax is same ... mysqldump bla bla bla ;-) but for the time, you have to use scheduler application to run the mysqldump :D -- Write c

Re: backup script

2002-08-26 Thread Mark Stringham
Anyone done it on widows? Thanks Mark - Original Message - From: "Ilyas Keser" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 26, 2002 4:26 PM Subject: backup script > Has anyone a shell script example to backup all mysql databases at 3 > o'clock at the night? > > Tha

Re: backup script

2002-08-26 Thread Gerald R. Jensen
I use a shell script and set up a cron job. Here's the shell script (I call it mydbbak.sh) # #!/bin/sh # # Create /dbbakup directory # $1 = Unix/MySQL Username # $2 = Unix/MySQL Password if [ ! -e /dbbakup ] then mkdir /dbbakup