User login

Dumping the MySQL structure for only certain tables

NOTE: These notes are in the process of being turned into a script that will work for shared-table multisite installations as well as regular Drupal sites.

mysql structure only certain tables

http://www.datanamic.com/support/mysqldump.html

mysqldump [OPTIONS] database [tables]
OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]
OR mysqldump [OPTIONS] --all-databases [OPTIONS]

-no-data, -d

Do not write any table row information (that is, do not dump table contents). This is very useful if you want to dump only the CREATE TABLE statement for the table.

for backup and restore of all MyISAM table databases:
http://dev.mysql.com/doc/refman/5.0/en/mysqlhotcopy.html

cache
cache_filter
cache_menu
cache_page
sessions
watchdog

mysqldump -d

for a way to FTP them offsite:
http://crazytoon.com/2007/01/23/mysql-backups-using-mysqldump/

unix how to register commands
path to script

http://www.wlug.org.nz/bash(1)Part6

all in one, BASH command line options:
http://www.linux-sxs.org/programming/bash.html

Here's the entire man page in one go:
http://bama.ua.edu/cgi-bin/man-cgi?bash

NOTE: These notes are in the process of being turned into a script that will work for shared-table multisite installations as well as regular Drupal sites.

mysql structure only certain tables

http://www.datanamic.com/support/mysqldump.html

mysqldump [OPTIONS] database [tables]
OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...]
OR mysqldump [OPTIONS] --all-databases [OPTIONS]

-no-data, -d

Do not write any table row information (that is, do not dump table contents). This is very useful if you want to dump only the CREATE TABLE statement for the table.

for backup and restore of all MyISAM table databases:
http://dev.mysql.com/doc/refman/5.0/en/mysqlhotcopy.html

cache
cache_filter
cache_menu
cache_page
sessions
watchdog

mysqldump -d

for a way to FTP them offsite:
http://crazytoon.com/2007/01/23/mysql-backups-using-mysqldump/

unix how to register commands
path to script

http://www.wlug.org.nz/bash(1)Part6

all in one, BASH command line options:
http://www.linux-sxs.org/programming/bash.html

Here's the entire man page in one go:
http://bama.ua.edu/cgi-bin/man-cgi?bash

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.