>and it can be run remotely.
really? on the docu page it sez:
but it can be run only on the same machine where the database director
+ies are located.
..but maybe that meant the /target/ directories (backing up TO) - i don't know
at any rate - i don't see how this is any better than mysqldump which is what i've employed for this purpose in the past
http://dev.mysql.com/doc/mysql/en/mysqldump.html
but while he says he doesn't have shell or script access on the db machine, mysqldump can be run remotely (too?)
here's the command i use to backup my 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
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 -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}"
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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.