question about rsync

This is a discussion on question about rsync within the Linux Networking forums, part of the Linux Forums category; Hi, I have several folders I want to synchronize with rsync. If I run the commands one by one, I ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-24-2007
bahoo
 
Posts: n/a
Default question about rsync

Hi,

I have several folders I want to synchronize with rsync. If I run the
commands one by one, I need to enter the password for each one.
Is there a way I can use a single rsync for all folders, so that I
only need to enter the password once?

Thanks!
bahoo

Reply With Quote
  #2 (permalink)  
Old 03-24-2007
Baho Utot
 
Posts: n/a
Default Re: question about rsync

bahoo wrote:

> Hi,
>
> I have several folders I want to synchronize with rsync. If I run the
> commands one by one, I need to enter the password for each one.
> Is there a way I can use a single rsync for all folders, so that I
> only need to enter the password once?
>
> Thanks!
> bahoo


sudo is one way

man sudo

--
Dancin in the ruins tonight
Tayo'y Mga Pinoy
Reply With Quote
  #3 (permalink)  
Old 03-25-2007
Chris Davies
 
Posts: n/a
Default Re: question about rsync

bahoo <b83503104@yahoo.com> wrote:
> I have several folders I want to synchronize with rsync.


I'm assuming you're referring back to your original post, where you gave
this example:

rsync -var -e ssh ~/code myname@xxx.xxx :~/code

> If I run the commands one by one, I need to enter the password for
> each one. Is there a way I can use a single rsync for all folders,
> so that I only need to enter the password once?


You could try something like this (untested):

rsync -var -e ssh -R ~/./first ~/./second ~/./third myname@target:

You might want to use the --dry-run option first.
Chris
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:11 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0