SCP

Hi All,
Please help on the below command
scp -r 'directory name'inrvgo@IP:/export/home/muthu/prod_12-09-2010

I am trying to copy a directory from one server to another server using the above command but its displaing the error

(missing destination file) but the diectory was there in the destination server i cross checked that too. please help on this

Whether am in the right way or not please suggest.

a <space> is missing

Does the file /export/home/muthu/prod_12-09-2010 exist on your remote host ?
Is it a directory in which you want your directory to be copied, or is it the new name under which you want your directory to be copied?

---------- Post updated at 12:06 PM ---------- Previous update was at 11:59 AM ----------

cd "directory name"
scp -r ./* user@remotehost:/export/home/muthu/prod_12-09-2010/

Will copy the files of "directory name" in "prod_12-09-2010"

scp -r "directory name" user@remotehost:/export/home/muthu/prod_12-09-2010/

will copy "directory name" as a subdirectory of "prod_12-09-2010"

1 Like