/[drupal]/contributions/modules/drush/example.drushrc.php
ViewVC logotype

Contents of /contributions/modules/drush/example.drushrc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.15 - (show annotations) (download) (as text)
Wed Oct 28 11:57:55 2009 UTC (4 weeks, 2 days ago) by weitzman
Branch: MAIN
Changes since 1.14: +5 -3 lines
File MIME type: text/x-php
Minor coding standards fixes and one bug fix in includes/sitealias.inc
1 <?php
2 // $Id: example.drushrc.php,v 1.14 2009/10/27 16:26:36 weitzman Exp $
3
4 /*
5 * Examples of valid statements for a drushrc.php file. Use this file to cut down on
6 * typing of options and avoid mistakes.
7 *
8 * Rename this file to drushrc.php and optionally copy it to one of
9 * four convenient places, listed below in order of precedence:
10 *
11 * - Drupal site folder.
12 * - Drupal installation root.
13 * - User Home folder (i.e. ~/.drushrc.php).
14 * - Drush installation folder.
15 *
16 * If a configuration file is found in any of the above locations, it
17 * will be loaded and merged with other configuration files in the
18 * search list.
19 *
20 * Alternately, copy it to any location and load it with the --config (-c) option.
21 * Note that this preempts loading any other configuration files!
22 */
23
24 // Specify a particular multisite.
25 # $options['l'] = 'http://example.com/subir';
26
27 // Specify your Drupal core base directory (useful if you use symlinks).
28 # $options['r'] = '/home/USER/workspace/drupal-6';
29
30 // Specify CVS for checkouts
31 # $options['package-handler'] = 'cvs';
32
33 // Specify CVS credentials for checkouts (requires --package-handler=cvs)
34 # $options['cvscredentials'] = 'name:password';
35
36 // Specify additional directories to search for *.drush.inc files
37 // Use POSIX path separator (':')
38 # $options['i'] = 'sites/default:profiles/myprofile';
39
40 // Enable verbose mode.
41 # $options['v'] = 1;
42
43
44 /*
45 * Customize this associative array with your own tables. This is the
46 * list of tables that are entirely omitted by the 'sql dump' and 'sql load'
47 * commands when a skip-tables-key is provided. You may add new tables to the existing array or add a new
48 * element.
49 */
50 $options['skip-tables'] = array(
51 'common' => array('accesslog', 'cache', 'cache_filter', 'cache_menu', 'cache_page', 'history', 'search_dataset', 'search_index', 'search_total', 'sessions', 'watchdog'),
52 );
53
54 /*
55 * Customize this associative array with your own tables. This is the
56 * list of tables that whose *data* is skipped by the 'sql dump' and 'sql load'
57 * commands when a structure-tables-key is provided. You may add new tables to the existing array or add a new
58 * element.
59 */
60 $options['structure-tables'] = array(
61 'common' => array('accesslog', 'cache', 'cache_filter', 'cache_menu', 'cache_page', 'history', 'search_dataset', 'search_index', 'search_total', 'sessions', 'watchdog'),
62 );
63
64 // Use cvs checkouts when downloading and updating modules.
65 // An example of a command specific argument being set in drushrc.php
66 // $options['package-handler'] = 'cvs';
67
68 // Specify additional directories to search for scripts
69 // Use POSIX path separator (':')
70 # $options['script-path'] = 'sites/all/scripts:profiles/myprofile/scripts';
71
72 /**
73 * Variable overrides:
74 *
75 * To override specific entries in the 'variable' table for this site,
76 * set them here. Any configuration setting from the 'variable'
77 * table can be given a new value. We use the $override global here
78 * to make sure that changes from settings.php can not wipe out these
79 * settings.
80 *
81 * Remove the leading hash signs to enable.
82 */
83 # $override = array(
84 # 'site_name' => 'My Drupal site',
85 # 'theme_default' => 'minnelli',
86 # 'anonymous' => 'Visitor',
87 # );
88
89 /**
90 * Site aliases:
91 *
92 * To create aliases to remote Drupal installations, add entries
93 * to the site-aliases option array here. These settings can be
94 * used in place of a site specification on the command line, and
95 * may also be used in arguments to certain commands such as
96 * "drush sync", "drush sql sync" and "drush sql load".
97 *
98 * Each entry in the 'site-aliases' array is accessed by its
99 * site alias (e.g. 'stage' or 'dev'). Most alias records use
100 * only a few of these keys; a simple alias record can be generated
101 * using the "drush --full site alias" command.
102 *
103 * The following settings are stored in the site alias record:
104 *
105 * - 'db-url': The Drupal 6 database connection string from settings.php.
106 * For remote databases accessed via an ssh tunnel, set the port
107 * number to the tunneled port as it is accessed on the local machine.
108 * If 'db-url' is not provided, then drush will automatically look it
109 * up, either from settings.php on the local machine, or via backend invoke
110 * if the target alias specifies a remote server.
111 * - 'databases': Like 'db-url', but contains the full Drupal 7 databases
112 * record. Drush will look up the 'databases' record if it is not specified.
113 * - 'remote-port': If the database is remote and 'db-url' contains
114 * a tunneled port number, put the actual database port number
115 * used on the remote machine in the 'remote-port' setting.
116 * - 'uri': This should always be the same as the site's folder name
117 * in the 'sites' folder.
118 * - 'remote-host': The fully-qualified domain name of the remote system
119 * hosting the Drupal instance. The remote-host option must be
120 * omitted for local sites, as this option controls whether or not
121 * rsync parameters are for local or remote machines.
122 * - 'remote-user': The username to log in as when using ssh or rsync.
123 * - 'path-aliases': An array of aliases for common rsync targets.
124 * Relative aliases are always taken from the Drupal root.
125 * '!root': The Drupal root; must not be specified as a relative path.
126 * '!drush': The path to the folder where drush is stored. Optional;
127 * defaults to the folder containing the running script. Always be sure
128 * to set '!drush' if the path to drush is different on the remote server.
129 * '!drush-script': The path to the 'drush' script (used by backend invoke);
130 * default is 'drush' on remote machines, or the full path to drush.php on
131 * the local machine.
132 * '!dump': Path to the file that "drush sql sync" should use to store sql dump file.
133 * '!files': Path to 'files' directory.
134 *
135 * Remove the leading hash signs to enable.
136 */
137 #$options['site-aliases']['stage'] = array(
138 # 'db-url' => 'pgsql://username:password@dbhost.com:port/databasename',
139 # 'uri' => 'stage.mydrupalsite.com',
140 # 'remote-host' => 'mystagingserver.myisp.com',
141 # 'remote-user' => 'publisher',
142 # 'path-aliases' => array(
143 # '!root' => '/path/to/remote/drupal/root',
144 # '!drush' => '/drush/path/drush',
145 # '!dump' => '/path/to/live/sql_dump.sql',
146 # '!files' => 'sites/mydrupalsite.com/files',
147 # '!custom' => '/my/custom/path',
148 # ),
149 # );
150 #$options['site-aliases']['dev'] = array(
151 # 'uri' => 'dev.mydrupalsite.com',
152 # 'path-aliases' => array(
153 # '!root' => '/path/to/drupal/root',
154 # ),
155 # );
156

  ViewVC Help
Powered by ViewVC 1.1.2