RSync from NAS machine over WinXP with cwRSync to another PC

Stuart Halliday StuartH at ecs-tech.com
Fri May 16 09:00:51 GMT 2008


> Hi,
> thank you, for your mail, but ... see below.
> 
> Am Donnerstag 15 Mai 2008 14:42 schrieb Stuart Halliday:
> > > Hello,
> > > some people want to use the following construction:
> > >
> > > they have a NAS machine with an integrated rsync  (may be on
> embedded
> > > linux).
> > >
> > > they have a WinXP with cwRsyncServer (with rsync 3.0.2)
> > >
 > and they have on WinXP a network share (i.e. Y:
> > > == "//192.168.100.123/sharename")
> > >
> > > They can use NAS / WinXP with cwRsync to copy files from NAS to a
> local
> > > path
> > > on the WinXP machine.
> > >
> > > But how to configure it, if they want to copy to Y: ?
> >
> > You just need to set up a Windows network drive to the NAS share and
> use
> > that drive letter.
> >
> 
> No, they want NOT copy to the NAS but want to copy FROM NAS to an
> external 
> server, which has a share on the windows machine. They cannot copy
> directly 
> to the external machine, because there is no rsync (dont ask why...).
> 
> The windows machine is between the NAS and the backup machine. Here the
> NAS is 
> NOT for the backup but to be backuped.
> 
> puh.



Ah right, you were not clear before.

So why not use this 3rd XP PC and put on it 2 network drives. One to the
NAS and one to the backup machine and then use Rsync on this 3rd machine 
to copy the files from the NAS to the backup machine. Easy.


set cygwin=notnsec

NET USE n: /DELETE
NET USE n: \\nasdevice\files <passwd> /USER:<nasuser> /PERSISTENT:NO
NET USE b: /DELETE
NET USE b: \\backupdevice\files <passwd> /USER:<backupuser> /PERSISTENT:NO

rsync -rDPt --chmod=Du+rwx,Fu+rwx --delete --modify-window=3601
/cygdrive/n/ /cygdrive/b

NET USE b: /DELETE
NET USE n: /DELETE

end.



To get NAS to do it you would need to have samba on it and the ability to
map network drives to the backup PC. Then you could write and run a rsync
script on the NAS.

-- 
Stuart Halliday
 


This email is the property of ECS Technology Ltd.
This company is registered in Scotland with company number 212513. 
VAT registered GB 761 7456 12  
http://www.ecs-tech.com/




More information about the rsync mailing list