SSH Copy Local File to Remote Server
Posted on 2011-09-27
I have 3 .sql database dumps that I need to import via command line because they are each over 3G in size. I am not that advanced in command line management, so I'm not sure if I'm doing this right.
I have the .sql file located in a local folder, ex: C:\databack\inboxcor_311_leads_dump.sql , but I keep getting a "No such file or directory" error when trying to run the scp copy command. I'm sure I'm not putting the path right, so if somebody could help me.....?
When logged in to PuTTY as root:
scp /databack/inboxcor_311_leads_dump.sql firstname.lastname@example.org:/var/www/vhosts/inboxmediacorp.com/httpdocs/databack