Perl

Forum dedicated to computer hardware and software, mobile phones and electronic gadgets.
User avatar
JimmyMethod
Posts: 6450
Joined: Fri Jun 10, 2005 12:18 pm
Car: 97' 240SX SE
Contact:

Post

I'm writing a script that will run rsync to backup multiple servers.Is there a flag or something where can have the password input automatically, so I don't have to type it in everytime I run the script for every computer?


240Knightrider
Posts: 3383
Joined: Tue Jan 13, 2004 6:48 pm
Contact:

Post

Do you have to have a password? Or can you run it without one? I know you can set it up to bypass the password for it to automatically update...
Modified by 240Knightrider at 6:48 PM 5/11/2007

User avatar
JimmyMethod
Posts: 6450
Joined: Fri Jun 10, 2005 12:18 pm
Car: 97' 240SX SE
Contact:

Post

Yes, the password is required. I'm backing up servers that aren't mine. I've been looking for a modified version of Rsync or something that had a flag that I could plug in a password to, but no such luck as of right now.

User avatar
AZhitman
Administrator
Posts: 54538
Joined: Mon Apr 29, 2002 2:04 am
Car: 58 L210, 63 Bluebird RHD, 64 NL320, 65 SPL310, 66 411 RHD, 67 WRL411, 68 510 SR20, 75 280Z RB25, 77 620 SR20, 79 B310, 90 Z32, 91 GTi-R, 92 Silvia Qs, 98 S14, 23 Z.
Location: Surprise, Arizona
Contact:

Post

Wish I had known you had those skills... we coulda used you a few weeks ago JM.

User avatar
JimmyMethod
Posts: 6450
Joined: Fri Jun 10, 2005 12:18 pm
Car: 97' 240SX SE
Contact:

Post

I've got the skillz to pay the billz.

240Knightrider
Posts: 3383
Joined: Tue Jan 13, 2004 6:48 pm
Contact:

Post

I dont know man, I have only scratched the surface with rsync. Wish I could help you more man.

User avatar
szh
Posts: 15932
Joined: Tue Jul 23, 2002 12:54 pm
Car: 2018 Tesla Model 3.

Unfortunately, no longer a Nissan or Infiniti, but continuing here at NICO!
Location: San Jose, CA

Post

JimmyMethod wrote:I'm writing a script that will run rsync to backup multiple servers.Is there a flag or something where can have the password input automatically, so I don't have to type it in everytime I run the script for every computer?
Which OS?

Z

User avatar
JimmyMethod
Posts: 6450
Joined: Fri Jun 10, 2005 12:18 pm
Car: 97' 240SX SE
Contact:

Post

Unix/Solaris

User avatar
szh
Posts: 15932
Joined: Tue Jul 23, 2002 12:54 pm
Car: 2018 Tesla Model 3.

Unfortunately, no longer a Nissan or Infiniti, but continuing here at NICO!
Location: San Jose, CA

Post

Have you tried the --password-file=FILE option (in version 3.0 of rsync)?

From the man page:

--password-file=FILE read password from FILE

If the remote site is running rsync as a daemon, you can also use the RSYNC_PASSWORD variable.

Hope this helps ...

Z

User avatar
GEO
Posts: 6449
Joined: Mon Jul 07, 2003 3:15 pm
Car: 95 240sx KA-T
Contact:

Post

What shell you running? I might have something


Return to “Computers / Electronics”