1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

rsync via cron - how do I avoid password prompt

Discussion in 'Plesk for Linux - 8.x and Older' started by bobspl, Mar 16, 2009.

  1. bobspl

    bobspl Guest

    0
     
    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 root@192.168.10.29:/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
     
Loading...