You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-8Lines changed: 21 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,8 @@ As a result, it is essential that you define a *single* target *without* an `ssh
95
95
"user":"local_db_username",
96
96
"pass":"local_db_password",
97
97
"host":"local_db_host",
98
-
"url":"local_db_url"
98
+
"url":"local_db_url",
99
+
"ignoreTables": ["table1","table2",...]
99
100
// note that the `local` target does not have an "ssh_host"
100
101
},
101
102
```
@@ -113,7 +114,8 @@ All other targets *must* contain a valid `ssh_host` parameter.
113
114
"pass":"development_db_password",
114
115
"host":"development_db_host",
115
116
"url":"development_db_url",
116
-
"ssh_host":"ssh_user@ssh_host"
117
+
"ssh_host":"ssh_user@ssh_host",
118
+
"ignoreTables": ["table1","table2",...]
117
119
},
118
120
"stage": {
119
121
"title":"Stage",
@@ -122,7 +124,8 @@ All other targets *must* contain a valid `ssh_host` parameter.
122
124
"pass":"stage_db_password",
123
125
"host":"stage_db_host",
124
126
"url":"stage_db_url",
125
-
"ssh_host":"ssh_user@ssh_host"
127
+
"ssh_host":"ssh_user@ssh_host",
128
+
"ignoreTables": ["table1","table2",...]
126
129
},
127
130
"production": {
128
131
"title":"Production",
@@ -131,7 +134,8 @@ All other targets *must* contain a valid `ssh_host` parameter.
131
134
"pass":"production_db_password",
132
135
"host":"production_db_host",
133
136
"url":"production_db_url",
134
-
"ssh_host":"ssh_user@ssh_host"
137
+
"ssh_host":"ssh_user@ssh_host",
138
+
"ignoreTables": ["table1","table2",...]
135
139
}
136
140
```
137
141
@@ -152,7 +156,8 @@ grunt.initConfig({
152
156
"user":"local_db_username",
153
157
"pass":"local_db_password",
154
158
"host":"local_db_host",
155
-
"url":"local_db_url"
159
+
"url":"local_db_url",
160
+
"ignoreTables": ["table1","table2",...]
156
161
// note that the `local` target does not have an "ssh_host"
157
162
},
158
163
// "Remote" targets
@@ -163,7 +168,8 @@ grunt.initConfig({
163
168
"pass":"development_db_password",
164
169
"host":"development_db_host",
165
170
"url":"development_db_url",
166
-
"ssh_host":"ssh_user@ssh_host"
171
+
"ssh_host":"ssh_user@ssh_host",
172
+
"ignoreTables": ["table1","table2",...]
167
173
},
168
174
"stage": {
169
175
"title":"Stage",
@@ -172,7 +178,8 @@ grunt.initConfig({
172
178
"pass":"stage_db_password",
173
179
"host":"stage_db_host",
174
180
"url":"stage_db_url",
175
-
"ssh_host":"ssh_user@ssh_host"
181
+
"ssh_host":"ssh_user@ssh_host",
182
+
"ignoreTables": ["table1","table2",...]
176
183
},
177
184
"production": {
178
185
"title":"Production",
@@ -181,7 +188,8 @@ grunt.initConfig({
181
188
"pass":"production_db_password",
182
189
"host":"production_db_host",
183
190
"url":"production_db_url",
184
-
"ssh_host":"ssh_user@ssh_host"
191
+
"ssh_host":"ssh_user@ssh_host",
192
+
"ignoreTables": ["table1","table2",...]
185
193
}
186
194
},
187
195
})
@@ -223,6 +231,10 @@ Description: the string to search and replace within the database before it is m
223
231
Type: `String`
224
232
Description: ssh connection string in the format `SSH_USER@SSH_HOST`. The task assumes you have ssh keys setup which allow you to remote into your server without requiring the input of a password. As this is an exhaustive topic we will not cover it here but you might like to start by reading [Github's own advice](https://help.github.com/articles/generating-ssh-keys).
225
233
234
+
#### ignoreTables
235
+
Type: `Array of Strings`
236
+
Description: tables to ignore. They won't be in the dump — neither their structure nor their content.
237
+
226
238
### Options
227
239
228
240
#### options.backups_dir
@@ -248,6 +260,7 @@ In lieu of a formal styleguide, take care to maintain the existing coding style.
248
260
249
261
## Release History
250
262
263
+
* 2013-12-09 v0.3.0 Added `ignoreTables` option.
251
264
* 2013-11-12 v0.2.0 Fix escaping issues, ability to define `target` via options, README doc fixes, pass host param to mysqldump.
252
265
* 2013-06-11 v0.1.0 Minor updates to docs including addtion of Release History section.
0 commit comments