Hello, I am redesigning a site and have created a Blank staging copy with the New Themes and the rest of the environment.
I want to export/Import the products from the woo commerce to the staging copy.
I have tried a few commercial Export-Import tools but I like a way to do this in a Bash script.
So I like to export the Product, The SEO meta, alidropship config and what other table do I need?
Here is what I found so far:
Product export
mysqldump --login-path=login_path --single-transaction --no-create-info --skip-opt --databases db --tables posts --where "post_type='product'" > products.sql
Metas
var=$(mysql --login-path=login_path --single-transaction db -N -e "SELECT ID FROM posts where post_type = 'product') function join_by { local IFS="$1"; shift; echo "$*"; }!1 ids=join_by , $var mysqldump --login-path=login_path --single-transaction --no-create-info --skip-opt --databases db --tables postmeta --where "post_id in ($ids)" > meta.sql
I want to export/Import the products from the woo commerce to the staging copy.
I have tried a few commercial Export-Import tools but I like a way to do this in a Bash script.
So I like to export the Product, The SEO meta, alidropship config and what other table do I need?
Here is what I found so far:
Product export
mysqldump --login-path=login_path --single-transaction --no-create-info --skip-opt --databases db --tables posts --where "post_type='product'" > products.sql
Metas
var=$(mysql --login-path=login_path --single-transaction db -N -e "SELECT ID FROM posts where post_type = 'product') function join_by { local IFS="$1"; shift; echo "$*"; }!1 ids=join_by , $var mysqldump --login-path=login_path --single-transaction --no-create-info --skip-opt --databases db --tables postmeta --where "post_id in ($ids)" > meta.sql