11 messages in com.mysql.lists.perlRE: Backing of Database -Dumping the ...
FromSent OnAttachments
ed phillips06 Sep 2001 08:08 
Nuno Dias06 Sep 2001 08:30 
Rajeev Rumale10 Sep 2001 03:06 
Stephen Howard10 Sep 2001 05:28 
ed phillips17 Sep 2001 11:02 
ed phillips17 Sep 2001 11:20 
Todd Finney17 Sep 2001 11:36 
Sean Cannon17 Sep 2001 11:47 
Sean Cannon17 Sep 2001 12:14 
Don Krause17 Sep 2001 12:17 
Todd Finney17 Sep 2001 12:29 
Subject:RE: Backing of Database -Dumping the database tables.
From:Todd Finney (tfin@boygenius.com)
Date:09/17/2001 12:29:35 PM
List:com.mysql.lists.perl

At 03:18 PM 9/17/01, Don Krause wrote:

That looks a little excessive.. <G>

Whats wrong with using mysql's own tools?

Basically, it's that all my problems look like nails. I'm a better perl programmer than shell script writer, so I tend to use perl for everything.

ie: ----Cut---- #!/bin/csh -f cd /export/mysqlbackup; echo "show databases;" | /usr/local/bin/mysql -uadmin -padminpassword | /usr/bin/grep -v Database > dblist; foreach db(`cat dblist`) /usr/local/bin/mysqldump -e --add-drop-table -l -uadmin -padminpassword $db > $db`date +%b%d%Y`.dump; end; /usr/bin/find . -mtime +7 -name "*.dump" -exec rm -f {} \; ----End----

That, my friend, is a beautiful thing.

Todd