wp-cli / export-command

Exports WordPress content to a WXR file.
MIT License
12 stars 27 forks source link

error when using --skip-tables and ssh togther #95

Closed robruiz closed 2 years ago

robruiz commented 2 years ago

wp @sshToServer db export --skip-tables=’wp_options’ - | wp db import - && wp search-replace 'websitename.com' 'staging.websitename.com'

returns "mysqldump: option '--tables' cannot take an argument"

Is this an issue with sql version? Is it because I am attempting to ssh with the export? We basically have a need here where we are attempting to exclude the options table so some global plugin settings from the production environment don't override the same settings in staging.

robruiz commented 2 years ago

I was using the wrong option syntax, it's --exclude_tables, not --skip-tables