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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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/