L
L
Leonid2016-11-11 12:03:24
SSH
Leonid, 2016-11-11 12:03:24

How to pass password to rsync to connect to remote machine?

I want to use rsync to backup folders and files daily from one server to another. I will write the rsync command to a .sh file, for example, in this form:

rsync -v --delete --exclude-from=.git --delete-excluded [email protected]:/home/www/ /backup/rsync/www/

question: how to pass the password to the rsync command to connect to a remote machine?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
U
Ulrich, 2016-11-11
@easycode

Connect with a key, not a password

R
RoverWhite, 2016-11-11
@RoverWhite

www.zcontest.ru/data/005_rsync_ssh_backup.php

W
WQP, 2017-02-04
@WQP

Make input masks. Then compare them. Send it to the server and it also needs to be validated there. users cannot be trusted 100%

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question