in reply to Re: Looking for module(s) that will backup mysql databases using DBI & DBD::mysql
in thread Looking for module(s) that will backup mysql databases using DBI & DBD::mysql
..but maybe that meant the /target/ directories (backing up TO) - i don't knowbut it can be run only on the same machine where the database director +ies are located.
and here's the command i use in a "staging" script (ahem, a few lines below the above), to copy my beta database into the production database:mysqldump -acQ -h "$cfg{db_host}" -u "$cfg{db_user}" --password="$cfg{ +db_pass}" --add-drop-table --allow-keywords "$cfg{db_prod}" > $cfg{cg +i_root}/$cfg{backups}/$cfg{prod}_$block_date.sql
it should be noted too that i'm in an identical situation: $cfg{db_host} is a machine i don't have script or shell access on.mysqldump -h "$cfg{db_host}" -u "$cfg{db_user}" --password="$cfg{db_pa +ss}" -acQ --add-drop-table --allow-keywords "$cfg{db_dev}" | mysql -s + -D "$cfg{db_prod}" -h "$cfg{db_host}" -u "$cfg{db_user}" --password= +"$cfg{db_pass}"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Looking for module(s) that will backup mysql databases using DBI & DBD::mysql
by hubb0r (Pilgrim) on Aug 28, 2005 at 04:22 UTC |