dfcode3
dfcode3

Reputation: 809

Copy file to remote dv server shell script

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

Answers (1)

Jeff Robert Dagala
Jeff Robert Dagala

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

Related Questions