Use the full path of source files, creating any missing intermediate directories when copying

cp

cp --parents {{source/path/to/file}} {{path/to/target_file}}

click the source code to copy install cp on any operating system with command-not-found.com