Supposing we have the following files to copy to a remote server:
I now want to copy both files to the remote server as follows:
cd /dir/ scp test.php inc/inc.php user@remote:/dir2/ (which contains an inc folder)
Is there an option to make scp copy the files in the respective directories on the remote server?
Currently I would end up with both files in
/dir2/ on the remote server.