Answer the question
In order to leave comments, you need to log in
How to rsync with password for ssh without interactive?
It is necessary from one hosting, to which there is no access via ssh, copy to another access via ssh
Run the task with a script (because there is no access from the console to the first hosting)
here is my attempt, which does not work
rsync -avhz --password-file=passfile /var/www/site.ru [email protected]::/var/www/site.ru/
ERROR: The remote path must start with a module name not a /
rsync error: error starting client-server protocol (code 5) at main.c(1503) [sender=3.0.6]
Answer the question
In order to leave comments, you need to log in
"ERROR: The remote path must start with a module name not a /"
Can you read the error?
Remove the two colons in your second path. Or if you want to use exactly the rsync protocol with two colons, then specify the name of the module configured in rsync, and not just the path to the folder.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question