• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

rsync via cron - how do I avoid password prompt

B

bobspl

Guest
I am trying to setup a cron job to run every 5 minutes to copy files from one server to another.
I can run the command manually but it prompts for a password which is inconsistent with a cron job.
e.g.
rsync -avz -e ssh [email protected]:/var/www/vhosts/source.com/httpdocs /var/www/vhosts/destination.com/

Surely this has been done 1000's of times.

When trying to follow instructions via google, e.g. http://troy.jdmz.net/rsync/index.html
I run into trouble logging in via ssh, using my remote user (<>root), and issuing the command
mkdir .ssh

I get a permission error. Should this be in the user's home ?

If anyone has the exact sequence to use it would be most helpful
 
Back
Top