Last active
May 24, 2018 17:20
-
-
Save lukecav/c9c37b3b567db59ee8c7c58c60dd1c80 to your computer and use it in GitHub Desktop.
Export a site DB but exclude users, orders and payment db tables from WooCommerce using WP-CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp db export --exclude_tables=wp_woocommerce_orders,wp_woocommerce_order_items,wp_woocommerce_order_itemmeta,wp_woocommerce_payment_tokens,wp_woocommerce_payment_tokenmeta,wp_users,wp_usermeta |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://developer.wordpress.org/cli/commands/db/export/
https://github.com/woocommerce/woocommerce/wiki/Database-Description
https://codex.wordpress.org/Database_Description