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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |