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: src/DB_Command.php
+9-6Lines changed: 9 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -264,6 +264,9 @@ public function query( $args, $assoc_args ) {
264
264
*
265
265
* [--tables=<tables>]
266
266
* : The comma separated list of specific tables to export. Excluding this parameter will export all tables in the database.
267
+
*
268
+
* [--exclude_tables=<tables>]
269
+
* : The comma separated list of specific tables that should be skipped from exporting. Excluding this parameter will export all tables in the database.
267
270
*
268
271
* [--porcelain]
269
272
* : Output filename for the exported database.
@@ -287,15 +290,15 @@ public function query( $args, $assoc_args ) {
287
290
* Success: Exported to 'wordpress_dbase.sql'.
288
291
*
289
292
* # Skip certain tables from the exported database
290
-
* $ wp db export --skip-tables=wp_options,wp_users
293
+
* $ wp db export --exclude_tables=wp_options,wp_users
291
294
* Success: Exported to 'wordpress_dbase.sql'.
292
295
*
293
296
* # Skip all tables matching a wildcard from the exported database
294
-
* $ wp db export --skip-tables=$(wp db tables 'wp_user*' --format=csv)
297
+
* $ wp db export --exclude_tables=$(wp db tables 'wp_user*' --format=csv)
295
298
* Success: Exported to 'wordpress_dbase.sql'.
296
299
*
297
300
* # Skip all tables matching prefix from the exported database
298
-
* $ wp db export --skip-tables=$(wp db tables --all-tables-with-prefix --format=csv)
301
+
* $ wp db export --exclude_tables=$(wp db tables --all-tables-with-prefix --format=csv)
299
302
* Success: Exported to 'wordpress_dbase.sql'.
300
303
*
301
304
* @alias dump
@@ -332,9 +335,9 @@ public function export( $args, $assoc_args ) {
0 commit comments