-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathexample-dgb.drushrc.php
More file actions
115 lines (108 loc) · 4.3 KB
/
example-dgb.drushrc.php
File metadata and controls
115 lines (108 loc) · 4.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php
/**
* Custom settings for dgb drush command.
* Rename this file to drushrc.php and optionally copy it to one of the places
* listed below in order of precedence:
*
* 1. Drupal site folder (e.g. sites/{default|example.com}/drushrc.php).
* 2. Drupal /drush and sites/all/drush folders.
* 3. In any location, as specified by the --config (-c) option.
* 4. User's .drush folder (i.e. ~/.drush/drushrc.php).
* 5. System wide configuration folder (e.g. /etc/drush/drushrc.php).
* 6. Drush installation folder.
*
* If you already have drushrc.php file, you can just add
* the settings below to it.
*
* Learn more about how to use drushrc.php in your local drush installation
* examples/example.drushrc.php or at
* http://drupalcode.org/project/drush.git/blob/refs/heads/7.x-5.x:/examples/example.drushrc.php
*/
/**
* List of tables whose *data* is skipped by the 'sql-dump' and 'sql-sync'
* commands when the "--structure-tables-key=common" option is provided.
* You may add specific tables to the existing array or add a new element.
*
* This list is very broad and includes tables from contrib modules which you
* may not use, but they will be ignored by dgb.
*/
$options['structure-tables'] = array(
'common' => array(
'accesslog',
'aggregator_item',
'apachesolr_index_entities*',
'apachesolr_search_node',
'cache',
'cache_*',
'captcha_sessions',
'ctools_css_cache',
'ctools_object_cache',
'flood',
'history',
'masquerade',
'mollom',
'migrate_*',
'realname',
'search_api_item',
'search_dataset',
'search_index',
'search_node_links',
'search_total',
'sessions',
'sparql_store_*',
'views_content_cache',
'watchdog',
'xmlsitemap',
),
);
/*
* Command-specific options for dgb.
*
* To define options that are only applicable to certain commands,
* make an entry in the 'command-specific' structures as shown below.
* The name of the command may be either the command's full name
* or any of the command's aliases.
*
* Options defined here will be overridden by options of the same
* name on the command line. Unary flags such as "--verbose" are overridden
* via special "--no-xxx" options (e.g. "--no-verbose").
*
* Limitation: If 'verbose' is set in a command-specific option,
* it must be cleared by '--no-verbose', not '--no-v', and visa-versa.
*/
$dgb_options = array(
'verbose' => FALSE,
// Necessary to have a better versionability of the sql dumps.
'ordered-dump' => TRUE,
// By default 'common' is a list of tables whose data will not be backed up.
// See below to change or add other keys can be added to
// $options['structure-tables'].
'structure-tables-key' => 'common',
// Useful to see what tables are effectively being backed up.
'display-dump-command' => TRUE,
// Path to the directory where the database dumps will be stored. Can be
// relative to DRUPAL_ROOT or absolute. Make sure it is within the git
// repository and outside the public web space of your server.
// Default is to assume the database dumps directory is one level up the
// drupal installation directory.
'dgb-dumps' => '../databases',
// Location of the git repository. Typically one level up DRUPAL_ROOT.
'dgb-repository' => '..',
);
// Sometimes ignoring tables is not enough to ignore data that
// should not be backed up. This allows more fine grained control via regular
// expressions over what's ignored in the dump.
// This is a list of regular expressions for making changes to the dump.
// Useful for example to remove specific variables from the variable table.
//$dgb_options['post-processing-changes'] = array(
// "/^INSERT INTO `variable` VALUES \('css_js_query_string','.*$\n/m" => '',
// "/^INSERT INTO `variable` VALUES \('features_codecache','.*$\n/m" => '',
//);
$command_specific['dgb-dump'] = $dgb_options;
$command_specific['dgb-commit'] = $dgb_options;
$command_specific['dgb-usage'] = $dgb_options;
$command_specific['dgb-backup'] = $dgb_options;
// Default logging level for php notices. Defaults to "notice"; set to "warning"
// if doing drush development. Also make sure that error_reporting is set to E_ALL
// in your php configuration file. See 'drush status' for the path to your php.ini file.
#$options['php-notices'] = 'warning';