Hi
Thanks for the info but either with or without SSH I got errors So my config is :
Linux Side (Redhat 9) with rsync 2.6.2 as server Rsync config : rsync --daemon --config=/etc/rsyncd.conf
------ /etc/rsyncd.conf : ---- motd file = /etc/rsyncd.motd log file = /var/log/rsyncd.log pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock
[backup_pa]
path = /mnt/hdc1/backup/
comment = Mon Serveur Rsync
uid = nobody
gid = nobody
read only = no
list = yes
auth users = root, bart2
secrets file = /etc/rsync.scrt
-----------------------------------
------ /etc/rsync.scrt : ----
bart2:bart2
-----------------------------------
Client side : Windows XP
rsync 2.6.2 (from cygwin but only needed files not the Unix lookNfeel command prompt)
Command file :
SET BSERVER=192.168.0.102
RSYNC_PASSWORD=bart2
rsync --server --daemon -ave ssh --delete "/cygdrive/c/Doc/backup/Desktop/MesFavories.rar" [EMAIL PROTECTED]::backup_pa
and got this error at client side:
rsync: unable to open configuration file "rsyncd.conf": No such file or directory
rsync error: syntax or usage error (code 1) at /home/lapo/packaging/tmp/rsync-2.6.2/client
server.c(498)
----------------------------------------
The next command works fine at client side even if the linux rsync daemon is NOT launched.
rsync -ave ssh --delete "/cygdrive/c/Doc/backup/Desktop/MesFavories.rar" [EMAIL PROTECTED]:/home/bart2/backup/current/bz/favories
But it allways asks for a password !
Thanks in advance for your help
Regards,
Bart.
Stuart Halliday a écrit :
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).
-- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html