NAME

Mysql::Backup - Perl extension for making backups of mysql DBs.

SYNOPSIS

use Mysql::Backup;
my $mb = new Mysql::Backup('perldesk','127.0.0.1','','');
print $mb->data_backup;

DESCRIPTION

Mysql::Backup should be useful for people, who needed in backuping mysql DBs by perl script and doesn't want to use mysqldump or doesn't able to do this.

The main methods are: $mb->data_backup - returns a full backup of current database $mb->table_data($tablename) - get all data from the table with $tablename $mb->table_desc($tablename) - get a structure of inputed table $mb->new_from_DBH($dbh) - if you have already DBI connection, you can use this $mb->create_structure - returns structure of current database

SEE ALSO

http://perl.dp.ua

AUTHOR

Dmitry Nikolayev<lt>dmitry@cpan.org<gt>

COPYRIGHT AND LICENSE

Copyright (C) 2004 by Dmitry Nikolayev

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available.