LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   copy file using SSH (https://www.linuxquestions.org/questions/linux-newbie-8/copy-file-using-ssh-815862/)

pinga123 06-23-2010 04:22 AM

copy file using SSH
 
I m trying to take backup of a file using ssh.
I have written a command like following.
Which will take backup of vm.cfg as backup.cfg

Code:

ssh -ttq 10.180.19.231 cp \OVS1\running_pool\$VM_GUEST\vm.cfg \OVS1\running_pool\running_pool\backup.cfg
However the above command producing the error as.

Quote:

cp: cannot stat `OVS1running_pool.cfg': No such file or directory
How would i modify my query?

acid_kewpie 06-23-2010 04:25 AM

use a legal path - / not \

pinga123 06-23-2010 05:15 AM

Thank u very much.


All times are GMT -5. The time now is 09:45 PM.