| 1 |
<?php
|
| 2 |
|
| 3 |
/**
|
| 4 |
* Path Settings
|
| 5 |
* - Relative path from where you would be running the scripts
|
| 6 |
(assumed to be your version control root, which may or may not differ from
|
| 7 |
your web root)
|
| 8 |
* - Do not use trailing slashes
|
| 9 |
*/
|
| 10 |
|
| 11 |
// Location of dbscripts folder
|
| 12 |
$script_path = './dbscripts';
|
| 13 |
|
| 14 |
// Location of settings.php
|
| 15 |
$settings_path = './sites/default';
|
| 16 |
|
| 17 |
// Location where database dump files will be stored
|
| 18 |
$file_path = './databases';
|
| 19 |
|
| 20 |
// Location of mysql binaries (needs to be set if not in your path)
|
| 21 |
$mysql = 'mysql';
|
| 22 |
$mysqldump = 'mysqldump';
|
| 23 |
|
| 24 |
// Charset location
|
| 25 |
$charsets = '/usr/local/share/mysql/charsets';
|
| 26 |
|
| 27 |
|
| 28 |
/**
|
| 29 |
* Database type (mysql, mysqli)
|
| 30 |
*/
|
| 31 |
$dbtype = 'mysqli';
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
/**
|
| 36 |
* Filtered tables
|
| 37 |
* Some data is not nessisary in some cases and shouldn't be stored
|
| 38 |
*/
|
| 39 |
|
| 40 |
// These tables are always filtered except when 'none' filtering option is used
|
| 41 |
// always deleted when performing a restore
|
| 42 |
$tables_filtered = array(
|
| 43 |
'cache',
|
| 44 |
'cache_.*',
|
| 45 |
'views_object_cache',
|
| 46 |
'votingapi_cache',
|
| 47 |
);
|
| 48 |
|
| 49 |
// Tables for 'min' filtering option
|
| 50 |
// preserved in working space
|
| 51 |
$tables_filtered_l1 = array(
|
| 52 |
'sessions',
|
| 53 |
'openid_association',
|
| 54 |
);
|
| 55 |
|
| 56 |
// Tables for 'full' filtering option, in addition to 'min'
|
| 57 |
// preserved in working space
|
| 58 |
$tables_filtered_l2 = array(
|
| 59 |
'accesslog',
|
| 60 |
'aggregator_item',
|
| 61 |
'aggregator_category_item',
|
| 62 |
'comments',
|
| 63 |
'node_comment_statistics',
|
| 64 |
'fivestar_comment',
|
| 65 |
'flood',
|
| 66 |
'history',
|
| 67 |
'mollom',
|
| 68 |
'node_comment_statistics',
|
| 69 |
'node_counter',
|
| 70 |
'poll_votes',
|
| 71 |
'search_dataset',
|
| 72 |
'search_index',
|
| 73 |
'search_node_links',
|
| 74 |
'search_total',
|
| 75 |
'votingapi_vote',
|
| 76 |
'watchdog',
|
| 77 |
);
|
| 78 |
|
| 79 |
|
| 80 |
/**
|
| 81 |
* Classifying Tables
|
| 82 |
* Should the data be taken from development, production, or be merged from the two
|
| 83 |
*/
|
| 84 |
|
| 85 |
|
| 86 |
// Tables that contain content to be merged from both development and production
|
| 87 |
$tables_merge = array(
|
| 88 |
'aggregator_category',
|
| 89 |
'aggregator_category_feed',
|
| 90 |
'aggregator_feed',
|
| 91 |
'authmap',
|
| 92 |
'blogapi_files',
|
| 93 |
'book',
|
| 94 |
'content_field_.*',
|
| 95 |
'content_type_.*',
|
| 96 |
'files',
|
| 97 |
'forum',
|
| 98 |
'image',
|
| 99 |
'image_attach',
|
| 100 |
'img_assist_map',
|
| 101 |
'menu_links',
|
| 102 |
'node',
|
| 103 |
'node_access',
|
| 104 |
'node_revisions',
|
| 105 |
'profile_values',
|
| 106 |
'poll',
|
| 107 |
'poll_choices',
|
| 108 |
'term_data',
|
| 109 |
'term_hierarchy',
|
| 110 |
'term_node',
|
| 111 |
'term_relation',
|
| 112 |
'term_synonym',
|
| 113 |
'upload',
|
| 114 |
'url_alias',
|
| 115 |
'vocabulary',
|
| 116 |
'vocabulary_node_types',
|
| 117 |
'webform_submissions',
|
| 118 |
'webform_submitted_data',
|
| 119 |
);
|
| 120 |
|
| 121 |
|
| 122 |
// Tables that contain content to be taken from production
|
| 123 |
// Will override any data made during development
|
| 124 |
$tables_override = array(
|
| 125 |
'accesslog',
|
| 126 |
'aggregator_item',
|
| 127 |
'aggregator_category_item',
|
| 128 |
'comments',
|
| 129 |
'comment_notify',
|
| 130 |
'fivestar_comment',
|
| 131 |
'flood',
|
| 132 |
'history',
|
| 133 |
'mollom',
|
| 134 |
'node_counter',
|
| 135 |
'node_comment_statistics',
|
| 136 |
'poll_votes',
|
| 137 |
'profile_values',
|
| 138 |
'search_dataset',
|
| 139 |
'search_index',
|
| 140 |
'search_node_links',
|
| 141 |
'search_total',
|
| 142 |
'sessions',
|
| 143 |
'users',
|
| 144 |
'users_roles',
|
| 145 |
'votingapi_vote',
|
| 146 |
'watchdog',
|
| 147 |
);
|
| 148 |
|
| 149 |
// Tables that contain content to be taken from development
|
| 150 |
// Will override any data made during production (so don't change this data in production!)
|
| 151 |
// This table actually doesn't do anything in the script, it's just here for the sake of information
|
| 152 |
$tables_structure = array(
|
| 153 |
'access',
|
| 154 |
'actions',
|
| 155 |
'actions_aid',
|
| 156 |
'advanced_help_index',
|
| 157 |
'batch',
|
| 158 |
'blocks',
|
| 159 |
'blocks_roles',
|
| 160 |
'boxes',
|
| 161 |
'contact',
|
| 162 |
'content_group',
|
| 163 |
'content_group_fields',
|
| 164 |
'content_node_field',
|
| 165 |
'content_node_field_instance',
|
| 166 |
'filters',
|
| 167 |
'filter_formats',
|
| 168 |
'imagecache_action',
|
| 169 |
'imagecache_preset',
|
| 170 |
'languages',
|
| 171 |
'locales_source',
|
| 172 |
'locales_target',
|
| 173 |
'menu_custom',
|
| 174 |
'menu_router',
|
| 175 |
'node_type',
|
| 176 |
'permission',
|
| 177 |
'profile_fields',
|
| 178 |
'role',
|
| 179 |
'system',
|
| 180 |
'trigger_assignments',
|
| 181 |
'variable',
|
| 182 |
'views_display',
|
| 183 |
'views_view',
|
| 184 |
'webform',
|
| 185 |
'webform_component',
|
| 186 |
'webform_roles',
|
| 187 |
);
|
| 188 |
|
| 189 |
|
| 190 |
// SQL comments that should not be unset
|
| 191 |
// you probably don't need to edit this
|
| 192 |
$sql_comment_unset = array(
|
| 193 |
'..!40103 SET TIME_ZONE=@OLD_TIME_ZONE ..;',
|
| 194 |
'..!40101 SET SQL_MODE=@OLD_SQL_MODE ..;',
|
| 195 |
'..!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS ..;',
|
| 196 |
'..!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;',
|
| 197 |
'..!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT ..;',
|
| 198 |
'..!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS ..;',
|
| 199 |
'..!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION ..;',
|
| 200 |
'..!40111 SET SQL_NOTES=@OLD_SQL_NOTES ..;',
|
| 201 |
);
|