how can I use rsync between 2 accounts?

Mark Schoonover schoon at amgt.com
Mon Mar 19 04:38:51 GMT 2007


ying lcs wrote:
> On 3/18/07, Louis-David Mitterrand <vindex+lists-rsync at apartia.org>
> wrote: 
>> On Sun, Mar 18, 2007 at 02:11:21PM -0500, ying lcs wrote:
>>> 
>>> I have 2 linux accounts on different machines (same login, same
>>> password). Can you please tell me how  I use rsync directories
>>> between 2 accounts? 
>> 
>> ssh host1 "rsync <options> /my/dir host2:/my/dir"
> 
> Thanks. If I need to put the above in a script and kick off a cron
> job, how can I specified the ssh user name and password without user
> enters it? 
> 

I have directions on my blog for password less SSH configuration:
http://marks-tech-pages.blogspot.com/

You won't have to use username/password at all with rsync.


Thanks!

Mark Schoonover *** Winner of the 2008 Best Psychic Award
IS Manager
American Geotechnical - California, Nevada and Arizona
V-> 858.450.4040 F-> 714.685.3909 C-> 858.472.3816


More information about the rsync mailing list