> 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 [EMAIL PROTECTED]::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 -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html