Re: How 'rsync' two in a script with one password?

Página superior
Adjuntos:
Obtener este mensaje como un correo
+ (text/plain)
Eliminar este mensaje
Responder a este mensaje
Autor: Bryan O'Neal
Fecha:  
A: Main PLUG discussion list
Asunto: Re: How 'rsync' two in a script with one password?
The easiest way is to use SSH encryption with key based authentication
to the remote box. If it sounds hard it certainly is not check out my
blog post here

http://mlwtech.blogspot.com/2009/04/rsync-and-ssh-keys-presentation-on.html

On Fri, Jul 16, 2010 at 8:28 AM, <> wrote:
>
> How can I use two (or more) 'rsync' commands in a single script without
> having to enter the password separately for each one?
>
> Below is a shortened example of a shell script that I use to update files
> from my local computer to my web host. It works fine, except I have to
> enter the password separately for each of the 'rsync' commands.
>
> How can I modify this so I only have to enter the password once (or
> perhaps embed the password for each one within the script)?
>
> # update.blue
>
> rsync -avHp --progress /home/joe/mydata/upquick/
> :www/upquick/
>
> rsync -avHp --progress /home/joe/mydata/zip/ :www/zip/
>
> rsync -avHp --progress /home/joe/mydata/av7/ :www/av7/
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss