Hi, 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? Thank you.
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"
On 3/18/07, Louis-David Mitterrand <vindex+lists-rsync@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? And what is host1, host2 (which one is src and which one is destination?> -- > To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html >
ying lcs wrote:> On 3/18/07, Louis-David Mitterrand <vindex+lists-rsync@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