Use the --parents
option:
--parents
Create missing parent directories in the destination, if necessary, when copying to target directory, according to the pathname specified in source.
computerhope.com/unix/ucp.htm#options
Example
cp --parents update/app/code/Magento/Update/Status.php ../patch