- For advanced users only.
- The defined list will be imported only with data of Many-to-One, One-to-One Right, Children-to-Parent relationships.
- The Many-to-Many, One-to-Many, One-to-One Left, Parent-to-Children relationships for related entities should be defined in the list additionally.
For example, you can use the following commands, but note that you may have a different --path="" and that you may have additional entities in --entity-list="" . That is why I included my custom entity CashAR in both commands (you may not have it, but there may or may not be other entities).
Export:
Code:
sudo bin/command export-import export --format=json --path="/var/www/html/build/export-import" --skip-data --skip-config --skip-config --skip-config --entity-list="Product, ProductAttributeOption, ProductAttribute, ProductBrand, ProductCategory, ProductCategory, User, InventoryAdjustmentItem, InventoryNumber, InventoryTransaction, ProductPrice, SupplierProductPrice, TaxClass, Team, Product, CashAR"
Code:
sudo bin/command export-import import --format=json --path="/var/www/html/build/export-import" --skip-internal-config --skip-password --skip-config --entity-list="Product, ProductAttributeOption, ProductAttribute, ProductBrand, ProductCategory, ProductCategory, User, InventoryAdjustmentItem, InventoryNumber, InventoryTransaction, ProductPrice, SupplierProductPrice, TaxClass, Team, Product, CashAR" --import-type=createAndUpdate
- During Export, you must have the Sales Pack extension installed on the old instance.
- During Import, you must have the Sales Pack extension installed on the new instance.

Leave a comment: