• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: rsync do shell script password..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rsync do shell script password..


  • Subject: Re: rsync do shell script password..
  • From: Axel Luttgens <email@hidden>
  • Date: Thu, 13 Sep 2007 09:50:14 +0200

On 12/09/07 21:06, Wayne Melrose wrote:

[...] I've  set up a command that looks like this

do shell script "rsync -Ezpu /Users/me/Desktop/rsync.scpt serverUser@10.0.0.1:/Users/server/Desktop/"


Hello Wayne.

From the above, it seems you are running rsync over a remote shell.

Which works fine as a shell script, prompting for the password.. Trick is I'd like to send the command with the password..

I've figured out three things..

1.
I can use a variable RSYNC_PASSWORD=mypassword
or
2.
Store the password in a file, then use the command --password-file=/ path/to/password/file
3.
Use ssh-keygen to store the passwords..? Not really what I want.


However, i don't seem to be able to get the syntax working for either of the two first options (my preferred options).. ?


According to rsync's man page, 1. and 2. only apply when syncing to a remote rsync server, not when running rsync over a remote shell.
Put in other words, 1. and 2. store a password used to authenticate against a remote rsyncd daemon, not to authenticate a remote user.



HTH, Axel _______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: rsync do shell script password..
      • From: Wayne Melrose <email@hidden>
References: 
 >rsync do shell script password.. (From: Wayne Melrose <email@hidden>)

  • Prev by Date: Re: rsync do shell script password..
  • Next by Date: Re: rsync do shell script password..
  • Previous by thread: Re: rsync do shell script password..
  • Next by thread: Re: rsync do shell script password..
  • Index(es):
    • Date
    • Thread