/
drushrc.php
62 lines (57 loc) · 2.75 KB
/
drushrc.php
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
<?php
// Custom settings for dgb drush command. Rename it to drushrc.php and place it
// in the Drupal installation directory DRUPAL_ROOT. Alternatively you can place
// it one level up and make a symbolic link from DRUPAL_ROOT, it will be backed
// as part of whole site. If you already have drushrc.php file, you can just add
// the settings below to it.
/*
* 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' => '..',
);
$command_specific['dgb-dump'] = $dgb_options;
$command_specific['dgb-commit'] = $dgb_options;
$command_specific['dgb-usage'] = $dgb_options;
$command_specific['dgb-backup'] = $dgb_options;
/*
* Customize this associative array with your own tables. This is the list of
* tables whose *data* is skipped by the 'sql-dump' and 'sql-sync' commands when
* a structure-tables-key is provided. You may add new tables to the existing
* array or add a new element.
*/
// $options['structure-tables'] = array(
// 'common' => array('accesslog', 'cache', 'cache_*', 'history', 'search_dataset', 'search_index', 'search_total', 'sessions', 'watchdog'),
// );
// 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';