Reputation: 809
But how can I copy a file from one dv server to another with a shell script? It's a small file, and I'd like to use the easiest method, so long as it's secure.
Upvotes: 0
Views: 968
Reputation: 633
try this if your using Linux / UNIX / OS X SSH scp Client
rsync -avz -e ssh user@server1:/var/www/html /var/www/html/
or this
scp -r user@server1:/var/www/html/ /var/www/html/
Upvotes: 1