Re: backup databases one to another

2005-04-13 Thread Karam Chand
This option involves two steps. First you have to
export complete data and then import it again.

You can do this more efficiently by using a sync tool
like Webyog (www.webyog.com). It will sync any two
MySQL databases with changes only done to modified
rows/columns.

YOu can probably mail their support people 

Regards
Karam

--- Gleb Paharenko [EMAIL PROTECTED] wrote:
 Hello.
 
 
 Something like:
 
   mysqldump -h 192.168.1.1 -uroot -p -A backup.sql
 
 See:
   http://dev.mysql.com/doc/mysql/en/mysqldump.html
 
 
 Abdul Aziz [EMAIL PROTECTED] wrote:
  
  
  Dear All,
  
  
  I wish to backup all databases to my
 server(192.168.1.1) from my host(192.
  168.1.5) with (mysqldump),how can we possible,plz
 tell me command or Script
  with brief description.
  
  Thanks in advance
  aaziz
  
  
  
  
 
 
 -- 
 For technical support contracts, goto
 https://order.mysql.com/?ref=ensita
 This email is sponsored by Ensita.NET
 http://www.ensita.net/
__  ___ ___   __
   /  |/  /_ __/ __/ __ \/ /Gleb Paharenko
  / /|_/ / // /\ \/ /_/ / /__  
 [EMAIL PROTECTED]
 /_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
___/   www.mysql.com
 
 
 
 
 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:   

http://lists.mysql.com/[EMAIL PROTECTED]
 
 



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: backup databases one to another

2005-04-13 Thread Forbiddenweb Archive
http://dev.mysql.com/doc/mysql/en/replication.html
I would look into the replication features of MySQL.  They can be used 
to create a backup copy of a database.  The slave database server will 
only get the changes from the Master as needed.

Karam Chand wrote:
This option involves two steps. First you have to
export complete data and then import it again.
You can do this more efficiently by using a sync tool
like Webyog (www.webyog.com). It will sync any two
MySQL databases with changes only done to modified
rows/columns.
YOu can probably mail their support people 

Regards
Karam
--- Gleb Paharenko [EMAIL PROTECTED] wrote:
 

Hello.
Something like:
 mysqldump -h 192.168.1.1 -uroot -p -A backup.sql
See:
 http://dev.mysql.com/doc/mysql/en/mysqldump.html
Abdul Aziz [EMAIL PROTECTED] wrote:
   

Dear All,
I wish to backup all databases to my
 

server(192.168.1.1) from my host(192.
   

168.1.5) with (mysqldump),how can we possible,plz
 

tell me command or Script
   

with brief description.
Thanks in advance
aaziz

 

--
For technical support contracts, goto
https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET
http://www.ensita.net/
  __  ___ ___   __
 /  |/  /_ __/ __/ __ \/ /Gleb Paharenko
/ /|_/ / // /\ \/ /_/ / /__  
[EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
  ___/   www.mysql.com


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:   

   

http://lists.mysql.com/[EMAIL PROTECTED]
 

   


		
__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

 


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: backup databases one to another

2005-04-12 Thread Gleb Paharenko
Hello.





Something like:



  mysqldump -h 192.168.1.1 -uroot -p -A backup.sql



See:

  http://dev.mysql.com/doc/mysql/en/mysqldump.html





Abdul Aziz [EMAIL PROTECTED] wrote:

 

 

 Dear All,

 

 

 I wish to backup all databases to my server(192.168.1.1) from my host(192.

 168.1.5) with (mysqldump),how can we possible,plz tell me command or Script

 with brief description.

 

 Thanks in advance

 aaziz

 

 

 

 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
   ___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: backup databases

2002-04-03 Thread Eberhard W Lisse

 From: David McInnis [EMAIL PROTECTED]

 Could you share your script for doing the date thing with the rest of
 us?  That sounds useful.

Isn't there a perl script around for backuping?

Something like:

mysqldump DB --add-drop-table --opt \
|gzip  DBdump.`date +%Y-%m-%d`.gz

should even sort right.

el

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: backup databases

2002-04-03 Thread Soheil Shaghaghi

You can try something like this:
DateDir=Directory where you want your backups saved
print $output-printheader;

my ( $sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst )=
localtime(time);
$year = $year + 1900;
$mon++;
my $filename = DataDir/MySQLBackup$mon-$mday-$year.sql;
my $c = ;
my $oldfilename = $filename.gz$c;
while (-e $oldfilename) {
$c++;
$oldfilename = $filename.gz$c;
}
if ($c  0) {
rename($filename.gz, $oldfilename);
}
my $command = undef;
$command = mysqldump -u DatabaseUserName -p DatabasePassWord
DatabaseName$filename;
my $result = `$command`;
system(gzip -9 $filename);

print 'BODY BGCOLOR=#FFCC99 text=black link=black 
alink=#C0C0C0
vlink=black' . \n\n;
print CENTER\n;
print TABLE BGCOLOR=#7373AA BORDER=0 WIDTH=90%TR 
BGCOLOR=#7373AATD
BGCOLOR=#7373AA\n;
print TABLE BGCOLOR=#7373AA BORDER=0 CELLPADDING=1 CELLSPACING=1
WIDTH=100%\n;
print TR BGCOLOR=#7373AATD BGCOLOR=#7373AACENTERFONT
COLOR=whiteBBackup Performed/B/FONT/CENTER/TD/TR\n;
print TR BGCOLOR=white\n;
print TD BGCOLOR=white\n;
print BYour data has been backed up and stored in your Data 
directory
($filename.gz).\n;
print /TD\n;
print /TR\n;
print /TABLE\n;
print /TD/TR/TABLE\n;
$output-done;




-Original Message-
From: Eberhard W Lisse [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 3:07 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: backup databases


 From: David McInnis [EMAIL PROTECTED]

 Could you share your script for doing the date thing with the rest of
 us?  That sounds useful.

Isn't there a perl script around for backuping?

Something like:

mysqldump DB --add-drop-table --opt \
|gzip  DBdump.`date +%Y-%m-%d`.gz

should even sort right.

el

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: backup databases

2002-04-02 Thread Russell E Glaue


We use mysqldump.
It is fast and easy. restoration is not hard.
If you want more a more percise restoration option, look at using the
change-log. It wil allow you to revert back in time to a state of the DB.
-RG


On Tue, 2 Apr 2002, Kory Wheatley wrote:

 Date: Tue, 02 Apr 2002 11:26:58 -0700
 From: Kory Wheatley [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: backup databases

 What is the best method to backup all your MYSQL DATBASES with not a lot
 of down time.  I have read  about using  mysqlhotcopy and mysqldump
 are these the best methods. Also what procedure is followed in backing
 up the databases. I'm basically looking for the must accurate and
 reliable way of doing this.

 --
 #
 Kory Wheatley
 Academic Computing Analyst Sr.
 Phone 282-3874
 #
 Everything must point to him.



 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail mysql-unsubscribe-##L=##[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail mysql-unsubscribe-##L=##[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: backup databases

2002-04-02 Thread Jonathan Hilgeman

I regularly back up all my databases with mysqldump:

mysqldump -uUsername -pPassword --all-databases  tmp.sql  tar -cf
MySQL-Backup-DATE.tar.gz -z tmp.sql  rm -f tmp.sql

I use a script (to determine DATE) in conjunction with cron to back all
databases up nightly, and I also have the script e-mail the .tar.gz file to
me so I can have a backup in case the server goes down. 

I've heard of hotcopy but never used it, so I couldn't recommend or
unrecommend it. 

- Jonahtan


-Original Message-
From: Kory Wheatley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: backup databases


What is the best method to backup all your MYSQL DATBASES with not a lot
of down time.  I have read  about using  mysqlhotcopy and mysqldump
are these the best methods. Also what procedure is followed in backing
up the databases. I'm basically looking for the must accurate and
reliable way of doing this.

--
#
Kory Wheatley
Academic Computing Analyst Sr.
Phone 282-3874
#
Everything must point to him.



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail mysql-unsubscribe-##L=##[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail mysql-unsubscribe-##L=##[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: backup databases

2002-04-02 Thread David McInnis

Could you share your script for doing the date thing with the rest of
us?  That sounds useful.

David McInnis

-Original Message-
From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 02, 2002 10:40 AM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: RE: backup databases

I regularly back up all my databases with mysqldump:

mysqldump -uUsername -pPassword --all-databases  tmp.sql  tar -cf
MySQL-Backup-DATE.tar.gz -z tmp.sql  rm -f tmp.sql

I use a script (to determine DATE) in conjunction with cron to back all
databases up nightly, and I also have the script e-mail the .tar.gz file
to
me so I can have a backup in case the server goes down. 

I've heard of hotcopy but never used it, so I couldn't recommend or
unrecommend it. 

- Jonahtan


-Original Message-
From: Kory Wheatley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: backup databases


What is the best method to backup all your MYSQL DATBASES with not a lot
of down time.  I have read  about using  mysqlhotcopy and mysqldump
are these the best methods. Also what procedure is followed in backing
up the databases. I'm basically looking for the must accurate and
reliable way of doing this.

--
#
Kory Wheatley
Academic Computing Analyst Sr.
Phone 282-3874
#
Everything must point to him.



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail mysql-unsubscribe-##L=##[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail mysql-unsubscribe-##L=##[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail mysql-unsubscribe-##L=##[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: backup databases

2002-04-02 Thread Rodney Broom

From: David McInnis [EMAIL PROTECTED]

 Could you share your script for doing the date thing with the rest of
 us?  That sounds useful.

  From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]] 
  mysqldump -uUsername -pPassword --all-databases  tmp.sql  tar -cf
  MySQL-Backup-DATE.tar.gz -z tmp.sql  rm -f tmp.sql
  I use a script (to determine DATE)...


How about:

  mysqldump -uUsername -pPassword --all-databases  tmp.sql  \
  tar -cf MySQL-Backup-`date +%Y-%m-%d`.tar.gz -z tmp.sql  \
  rm -f tmp.sql

Try this for an example that doesn't change anything:

  echo MySQL-Backup-`date +%Y-%m-%d`.tar.gz

---
Rodney Broom
Programmer: Desert.Net

sql



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: backup databases

2002-04-02 Thread Jonathan Hilgeman

Sure. Just create a new file called something like mysqlbackup.sh and chmod
it to make it executable. Change any of the vars you want, and it should
work (but remember to update the e-mail part of it to use whatever e-mail
client you want, unless you just want to leave that part out)

This is a customized script, so you'll probably need to tweak it to get it
right for you. shrug

#!/bin/sh


# MySQL Backup Script  #


# Tarfile Info
DATE=`/bin/date +%d-%b-%Y-%H-%M-%S`
FILEPREFIX=MySQL-Backup-$DATE
TEMPDIR=/tmp

# You can also use stuff like hostname:
# HOSTNAME=`/bin/hostname`
#
# As well as other date formats - check the
# man pages on the date command for different
# formats you can use.

# MySQL Info
USERNAME=root
PASSWORD=password
DATABASE=--all-databases

# Email Info
RECIPIENT=[EMAIL PROTECTED]
NICEDATE=`/bin/date +%b-%d-%Y`
SUBJECT=MySQL Backup for $NICEDATE


# Do the tarring
mysqldump -u$USERNAME -p$PASSWORD $DATABASE  $TEMPDIR/$FILEPREFIX.sql
tar -cf $TEMPDIR/$FILEPREFIX.tar.gz -z $TEMPDIR/$FILEPREFIX.sql
rm -f $TEMPDIR/$FILEPREFIX.sql

# E-mail the tarfile - Use whatever e-mail method you
# want. I use perl, but another good one is biabam.
BackupMailer.pl $RECIPIENT $SUBJECT $FILEPREFIX.tar.gz

- Jonathan

-Original Message-
From: David McInnis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 10:53 AM
To: 'Jonathan Hilgeman'; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: backup databases


Could you share your script for doing the date thing with the rest of
us?  That sounds useful.

David McInnis

-Original Message-
From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 02, 2002 10:40 AM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: RE: backup databases

I regularly back up all my databases with mysqldump:

mysqldump -uUsername -pPassword --all-databases  tmp.sql  tar -cf
MySQL-Backup-DATE.tar.gz -z tmp.sql  rm -f tmp.sql

I use a script (to determine DATE) in conjunction with cron to back all
databases up nightly, and I also have the script e-mail the .tar.gz file
to
me so I can have a backup in case the server goes down. 

I've heard of hotcopy but never used it, so I couldn't recommend or
unrecommend it. 

- Jonahtan

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail mysql-unsubscribe-##L=##[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: backup databases

2002-04-02 Thread Michael C. Neel

We use mybackup.pl - a perl script found on sourceforge (well, not
anymore I just looked).  It creates a compressed tarball of each
database, with a file for each table.  The files can be used with the
mysql client without change to rebuild a table.  It also can be setup to
rotate the backups based on date.  You can also have the data emailed if
so desired.

http://worldcommunity.com/opensource/

Mike

-Original Message-
From: Kory Wheatley [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 02, 2002 1:27 PM
To: [EMAIL PROTECTED]
Subject: backup databases


What is the best method to backup all your MYSQL DATBASES with not a lot
of down time.  I have read  about using  mysqlhotcopy and mysqldump
are these the best methods. Also what procedure is followed in backing
up the databases. I'm basically looking for the must accurate and
reliable way of doing this.

--
#
Kory Wheatley
Academic Computing Analyst Sr.
Phone 282-3874
#
Everything must point to him.



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail mysql-unsubscribe-##L=##[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail mysql-unsubscribe-##L=##[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




RE: backup databases

2002-04-02 Thread Russell E Glaue


It's easy shell.
-
#!/usr/bin/bash
DATE=`/usr/bin/date '+%Y%m%d%H%M%S'`  # or '+%Y%m%d'
mysqldump -uUsername -pPassword --all-databases  tmp.sql  tar  \
 -cf MySQL-Backup-${DATE}.tar.gz -z tmp.sql  rm -f tmp.sql
-
-RG

On Tue, 2 Apr 2002, David McInnis wrote:

 Date: Tue, 2 Apr 2002 10:53:27 -0800
 From: David McInnis [EMAIL PROTECTED]
 To: 'Jonathan Hilgeman' [EMAIL PROTECTED], [EMAIL PROTECTED],
  [EMAIL PROTECTED]
 Subject: RE: backup databases

 Could you share your script for doing the date thing with the rest of
 us?  That sounds useful.

 David McInnis

 -Original Message-
 From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 02, 2002 10:40 AM
 To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
 Subject: RE: backup databases

 I regularly back up all my databases with mysqldump:

 mysqldump -uUsername -pPassword --all-databases  tmp.sql  tar -cf
 MySQL-Backup-DATE.tar.gz -z tmp.sql  rm -f tmp.sql

 I use a script (to determine DATE) in conjunction with cron to back all
 databases up nightly, and I also have the script e-mail the .tar.gz file
 to
 me so I can have a backup in case the server goes down.

 I've heard of hotcopy but never used it, so I couldn't recommend or
 unrecommend it.

 - Jonahtan


 -Original Message-
 From: Kory Wheatley [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 02, 2002 10:27 AM
 To: [EMAIL PROTECTED]
 Subject: backup databases


 What is the best method to backup all your MYSQL DATBASES with not a lot
 of down time.  I have read  about using  mysqlhotcopy and mysqldump
 are these the best methods. Also what procedure is followed in backing
 up the databases. I'm basically looking for the must accurate and
 reliable way of doing this.

 --
 #
 Kory Wheatley
 Academic Computing Analyst Sr.
 Phone 282-3874
 #
 Everything must point to him.



 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail mysql-unsubscribe-##L=##[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail mysql-unsubscribe-##L=##[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail mysql-unsubscribe-##L=##[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail mysql-unsubscribe-##L=##[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: backup databases

2002-04-02 Thread Mark Stringham

What would  the script look like if I'm on Win2k ?

Mark
-Original Message-
From: Rodney Broom [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Tuesday, April 02, 2002 12:22 PM
Subject: Re: backup databases


From: David McInnis [EMAIL PROTECTED]

 Could you share your script for doing the date thing with the rest of
 us?  That sounds useful.

  From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]]
  mysqldump -uUsername -pPassword --all-databases  tmp.sql  tar -cf
  MySQL-Backup-DATE.tar.gz -z tmp.sql  rm -f tmp.sql
  I use a script (to determine DATE)...


How about:

  mysqldump -uUsername -pPassword --all-databases  tmp.sql  \
  tar -cf MySQL-Backup-`date +%Y-%m-%d`.tar.gz -z tmp.sql  \
  rm -f tmp.sql

Try this for an example that doesn't change anything:

  echo MySQL-Backup-`date +%Y-%m-%d`.tar.gz

---
Rodney Broom
Programmer: Desert.Net

sql



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail
[EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: backup databases

2002-04-02 Thread Russell E Glaue


On Tue, 2 Apr 2002, Mark Stringham wrote:

 What would  the script look like if I'm on Win2k ?

Good luck!!

But seriously; there is a $300 software package out there (can't remember
name) that will give your billy-boy OS some unix shell-like capabilities,
including TAR. It was featured in like a January (or December) Network
Magazine article.
If your interested in knowing what this software package is, e-mail me and
I'll look and get the name (and URL) to you.
-RG



 Mark
 -Original Message-
 From: Rodney Broom [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date: Tuesday, April 02, 2002 12:22 PM
 Subject: Re: backup databases


 From: David McInnis [EMAIL PROTECTED]
 
  Could you share your script for doing the date thing with the rest of
  us?  That sounds useful.
 
   From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]]
   mysqldump -uUsername -pPassword --all-databases  tmp.sql  tar -cf
   MySQL-Backup-DATE.tar.gz -z tmp.sql  rm -f tmp.sql
   I use a script (to determine DATE)...
 
 
 How about:
 
   mysqldump -uUsername -pPassword --all-databases  tmp.sql  \
   tar -cf MySQL-Backup-`date +%Y-%m-%d`.tar.gz -z tmp.sql  \
   rm -f tmp.sql
 
 Try this for an example that doesn't change anything:
 
   echo MySQL-Backup-`date +%Y-%m-%d`.tar.gz
 
 ---
 Rodney Broom
 Programmer: Desert.Net
 
 sql
 
 
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 


 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: backup databases

2002-04-02 Thread David Turner

Check out cygwin.com. I think it's free. Great for unix guys having to
run on NT.

Dave
On Tue, Apr 02, 2002 at 05:25:15PM -0600, Russell E Glaue wrote:
 
 On Tue, 2 Apr 2002, Mark Stringham wrote:
 
  What would  the script look like if I'm on Win2k ?
 
 Good luck!!
 
 But seriously; there is a $300 software package out there (can't remember
 name) that will give your billy-boy OS some unix shell-like capabilities,
 including TAR. It was featured in like a January (or December) Network
 Magazine article.
 If your interested in knowing what this software package is, e-mail me and
 I'll look and get the name (and URL) to you.
 -RG
 
 
 
  Mark
  -Original Message-
  From: Rodney Broom [EMAIL PROTECTED]
  To: [EMAIL PROTECTED] [EMAIL PROTECTED]
  Date: Tuesday, April 02, 2002 12:22 PM
  Subject: Re: backup databases
 
 
  From: David McInnis [EMAIL PROTECTED]
  
   Could you share your script for doing the date thing with the rest of
   us?  That sounds useful.
  
From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]]
mysqldump -uUsername -pPassword --all-databases  tmp.sql  tar -cf
MySQL-Backup-DATE.tar.gz -z tmp.sql  rm -f tmp.sql
I use a script (to determine DATE)...
  
  
  How about:
  
mysqldump -uUsername -pPassword --all-databases  tmp.sql  \
tar -cf MySQL-Backup-`date +%Y-%m-%d`.tar.gz -z tmp.sql  \
rm -f tmp.sql
  
  Try this for an example that doesn't change anything:
  
echo MySQL-Backup-`date +%Y-%m-%d`.tar.gz
  
  ---
  Rodney Broom
  Programmer: Desert.Net
  
  sql
  
  
  
  -
  Before posting, please check:
 http://www.mysql.com/manual.php   (the manual)
 http://lists.mysql.com/   (the list archive)
  
  To request this thread, e-mail [EMAIL PROTECTED]
  To unsubscribe, e-mail
  [EMAIL PROTECTED]
  Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
  
 
 
  -
  Before posting, please check:
 http://www.mysql.com/manual.php   (the manual)
 http://lists.mysql.com/   (the list archive)
 
  To request this thread, e-mail [EMAIL PROTECTED]
  To unsubscribe, e-mail [EMAIL PROTECTED]
  Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 
 
 
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: backup databases

2002-04-02 Thread Mark Stringham

Could I run something similar as a BAT file?

-Original Message-
From: Russell E Glaue [EMAIL PROTECTED]
To: Mark Stringham [EMAIL PROTECTED]
Cc: Rodney Broom [EMAIL PROTECTED]; [EMAIL PROTECTED]
[EMAIL PROTECTED]
Date: Tuesday, April 02, 2002 4:25 PM
Subject: Re: backup databases



On Tue, 2 Apr 2002, Mark Stringham wrote:

 What would  the script look like if I'm on Win2k ?

Good luck!!

But seriously; there is a $300 software package out there (can't remember
name) that will give your billy-boy OS some unix shell-like capabilities,
including TAR. It was featured in like a January (or December) Network
Magazine article.
If your interested in knowing what this software package is, e-mail me and
I'll look and get the name (and URL) to you.
-RG



 Mark
 -Original Message-
 From: Rodney Broom [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date: Tuesday, April 02, 2002 12:22 PM
 Subject: Re: backup databases


 From: David McInnis [EMAIL PROTECTED]
 
  Could you share your script for doing the date thing with the rest of
  us?  That sounds useful.
 
   From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]]
   mysqldump -uUsername -pPassword --all-databases  tmp.sql  tar -cf
   MySQL-Backup-DATE.tar.gz -z tmp.sql  rm -f tmp.sql
   I use a script (to determine DATE)...
 
 
 How about:
 
   mysqldump -uUsername -pPassword --all-databases  tmp.sql  \
   tar -cf MySQL-Backup-`date +%Y-%m-%d`.tar.gz -z tmp.sql  \
   rm -f tmp.sql
 
 Try this for an example that doesn't change anything:
 
   echo MySQL-Backup-`date +%Y-%m-%d`.tar.gz
 
 ---
 Rodney Broom
 Programmer: Desert.Net
 
 sql
 
 
 
 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)
 
 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
 [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 


 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail
[EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: backup databases

2002-04-02 Thread Russell E Glaue


Maybe... after some long hours and many lines.  I am not sure.  I know it
won't necessarilly be easy.
You'd be better off using PERL.
You can download the windows binary of PERL for free. (www.perl.org)
You can install PERL anywhere you want on the system just so long as your
PERL scripts point at the PERL.EXE executable.
-RG


On Tue, 2 Apr 2002, Mark Stringham wrote:

 Could I run something similar as a BAT file?

 -Original Message-
 From: Russell E Glaue [EMAIL PROTECTED]
 To: Mark Stringham [EMAIL PROTECTED]
 Cc: Rodney Broom [EMAIL PROTECTED]; [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 Date: Tuesday, April 02, 2002 4:25 PM
 Subject: Re: backup databases


 
 On Tue, 2 Apr 2002, Mark Stringham wrote:
 
  What would  the script look like if I'm on Win2k ?
 
 Good luck!!
 
 But seriously; there is a $300 software package out there (can't remember
 name) that will give your billy-boy OS some unix shell-like capabilities,
 including TAR. It was featured in like a January (or December) Network
 Magazine article.
 If your interested in knowing what this software package is, e-mail me and
 I'll look and get the name (and URL) to you.
 -RG
 
 
 
  Mark
  -Original Message-
  From: Rodney Broom [EMAIL PROTECTED]
  To: [EMAIL PROTECTED] [EMAIL PROTECTED]
  Date: Tuesday, April 02, 2002 12:22 PM
  Subject: Re: backup databases
 
 
  From: David McInnis [EMAIL PROTECTED]
  
   Could you share your script for doing the date thing with the rest of
   us?  That sounds useful.
  
From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]]
mysqldump -uUsername -pPassword --all-databases  tmp.sql  tar -cf
MySQL-Backup-DATE.tar.gz -z tmp.sql  rm -f tmp.sql
I use a script (to determine DATE)...
  
  
  How about:
  
mysqldump -uUsername -pPassword --all-databases  tmp.sql  \
tar -cf MySQL-Backup-`date +%Y-%m-%d`.tar.gz -z tmp.sql  \
rm -f tmp.sql
  
  Try this for an example that doesn't change anything:
  
echo MySQL-Backup-`date +%Y-%m-%d`.tar.gz
  
  ---
  Rodney Broom
  Programmer: Desert.Net
  
  sql
  
  
  
  -
  Before posting, please check:
 http://www.mysql.com/manual.php   (the manual)
 http://lists.mysql.com/   (the list archive)
  
  To request this thread, e-mail [EMAIL PROTECTED]
  To unsubscribe, e-mail
  [EMAIL PROTECTED]
  Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
  
 
 
  -
  Before posting, please check:
 http://www.mysql.com/manual.php   (the manual)
 http://lists.mysql.com/   (the list archive)
 
  To request this thread, e-mail [EMAIL PROTECTED]
  To unsubscribe, e-mail
 [EMAIL PROTECTED]
  Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
 
 
 




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: backup databases

2002-04-02 Thread Russell E Glaue


forgot to mention.
you'll have to use ZIP, since TAR is not available on Windows (unless
you use the previously mentioned software packages).
-RG

On Tue, 2 Apr 2002, Russell E Glaue wrote:

 Maybe... after some long hours and many lines.  I am not sure.  I know it
 won't necessarilly be easy.
 You'd be better off using PERL.
 You can download the windows binary of PERL for free. (www.perl.org)
 You can install PERL anywhere you want on the system just so long as your
 PERL scripts point at the PERL.EXE executable.
 -RG


 On Tue, 2 Apr 2002, Mark Stringham wrote:
 
  Could I run something similar as a BAT file?
 
  -Original Message-
  From: Russell E Glaue [EMAIL PROTECTED]
  To: Mark Stringham [EMAIL PROTECTED]
  Cc: Rodney Broom [EMAIL PROTECTED]; [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  Date: Tuesday, April 02, 2002 4:25 PM
  Subject: Re: backup databases
 
 
  
  On Tue, 2 Apr 2002, Mark Stringham wrote:
  
   What would  the script look like if I'm on Win2k ?
  
  Good luck!!
  
  But seriously; there is a $300 software package out there (can't remember
  name) that will give your billy-boy OS some unix shell-like capabilities,
  including TAR. It was featured in like a January (or December) Network
  Magazine article.
  If your interested in knowing what this software package is, e-mail me and
  I'll look and get the name (and URL) to you.
  -RG
  
  
  
   Mark
   -Original Message-
   From: Rodney Broom [EMAIL PROTECTED]
   To: [EMAIL PROTECTED] [EMAIL PROTECTED]
   Date: Tuesday, April 02, 2002 12:22 PM
   Subject: Re: backup databases
  
  
   From: David McInnis [EMAIL PROTECTED]
   
Could you share your script for doing the date thing with the rest of
us?  That sounds useful.
   
 From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]]
 mysqldump -uUsername -pPassword --all-databases  tmp.sql  tar -cf
 MySQL-Backup-DATE.tar.gz -z tmp.sql  rm -f tmp.sql
 I use a script (to determine DATE)...
   
   
   How about:
   
 mysqldump -uUsername -pPassword --all-databases  tmp.sql  \
 tar -cf MySQL-Backup-`date +%Y-%m-%d`.tar.gz -z tmp.sql  \
 rm -f tmp.sql
   
   Try this for an example that doesn't change anything:
   
 echo MySQL-Backup-`date +%Y-%m-%d`.tar.gz
   
   ---
   Rodney Broom
   Programmer: Desert.Net
   
   sql
   
   
   
   -
   Before posting, please check:
  http://www.mysql.com/manual.php   (the manual)
  http://lists.mysql.com/   (the list archive)
   
   To request this thread, e-mail [EMAIL PROTECTED]
   To unsubscribe, e-mail
   [EMAIL PROTECTED]
   Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
   
  
  
   -
   Before posting, please check:
  http://www.mysql.com/manual.php   (the manual)
  http://lists.mysql.com/   (the list archive)
  
   To request this thread, e-mail [EMAIL PROTECTED]
   To unsubscribe, e-mail
  [EMAIL PROTECTED]
   Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
  
  
  
 
 


 -
 Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/   (the list archive)

 To request this thread, e-mail [EMAIL PROTECTED]
 To unsubscribe, e-mail [EMAIL PROTECTED]
 Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php




Re: backup databases

2002-04-02 Thread destr0

 What would  the script look like if I'm on Win2k ?
 Good luck!!

Don't listen to the naysayers

@echo off
set zdate=%date%
set zdate=%zdate: =%
set zdate=%zdate:/=-%
C:\mysql\bin\mysqldump -A  E:\mysqlDataBackup\%zdate%.txt

save as a .bat and put it in the scheduler.  Mine runs every hour.

 
But seriously; there is a $300 software package out there (can't remember
name) that will give your billy-boy OS some unix shell-like capabilities,
including TAR

if you need to compress the files email me off-list.  



-
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/   (the list archive)

To request this thread, e-mail [EMAIL PROTECTED]
To unsubscribe, e-mail [EMAIL PROTECTED]
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php