First of all copy the folders

/components/com_x
/administrator/components/com_x

Then copy the component’s rows from tables:

extensions
menu
assets
redirect_links