Hi As I want to automate my Desktop backup process, I'm currently trying to finilize a CMD (Windows XP batch) file in order to save different data (outlook.pst, \desktop, \docs, \Favorites ....). My problem is that even with this parameter SET RSYNC_PASSWORD=xxxx It still ask me for a password, blocking of course all the process automation. I'm running either on my Linux backup box (RedHat9 v2.40) or on my PC, version 2.6.2 of rsync, assuming it is the latest. Thanks in advance, Regards, Bart.
On Fri, Jun 25, 2004 at 04:58:12PM +0200, bzels123 wrote:> My problem is that even with this parameter SET RSYNC_PASSWORD=xxxx > It still ask me for a password, blocking of course all the process > automation.You don't mention what command you're running, so I'll assume that the problem is that you're not trying to make a daemon connection (which is the only thing that the RSYNC_PASSWORD affects) but instead being prompted by ssh to enter your password. If so, read the ssh docs (e.g. ssh-keygen) and get a solo ssh command to work without a password prompt, then rsync will work without a prompt. ..wayne..
> As I want to automate my Desktop backup process, I'm currently trying > to finilize a CMD (Windows XP batch) file in order to save different data > (outlook.pst, \desktop, \docs, \Favorites ....). > > My problem is that even with this parameter SET RSYNC_PASSWORD=xxxx > It still ask me for a password, blocking of course all the process > automation.First I don't know if you're using the '-e ssh' parameter in rsync or not. If not, then here is an example of a (.bat) batch script from my Windows 2000 client that I use to backup files from one Windows 2000 machine to a Windows XP across the Internet. I couldn't get ssh to work on the Windows machines so I don't bother using it. You probably don't need to use it either if both machines are in your local home LAN. -------------------------------------------------------------- SET RSYNC_PASSWORD=fred SET CYGWIN=nontsec SET HOME=c:\cwrsync\ cd c:\cwrsync\ c: C:\cwrsync\rsync -za --modify-window=3 -P --delete --recursive /cygdrive/d/favorites stuart@homepc.co.uk::backup/ --------------------------------------------------------------- So this .bat copies my work IE favourites to my home PC. The server machine has a rsync.conf file with a module called 'backup' ---------------------------------------------- use chroot=false strict modes = false secrets file =/cygdrive/c/cwrsync/password [backup] path=/cygdrive/c/cwrsync/backup/ read only=false transfer logging = yes list=no auth users=stuart ----------------------------------------------- The secrets file on the server contains a line containing 'username:password' so in this case, that would be 'stuart:fred' (no quotes). -- Stuart Halliday