Manfred Rebentisch
2008-May-15 11:33 UTC
RSync from NAS machine over WinXP with cwRSync to another PC
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: ? They use rsync server on windows with a "secrets file" and the following module definition in rsyncd.conf (on WinXP): [sharename] path = //192.168.100.123/path/sub read only = false auth users = bkupuser transfer logging = yes Is that the right way? Thanks in advance Manfred
Stuart Halliday
2008-May-15 12:49 UTC
RSync from NAS machine over WinXP with cwRSync to another PC
> 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. I do this to backup files from Windows 2003 to a NAS. Batch file runs on XP. set cygwin=notnsec NET USE q: /DELETE NET USE q: \\nasdevice\files <passwd> /USER:<nasuser> /PERSISTENT:NO rsync -rDPt --chmod=Du+rwx,Fu+rwx --delete --modify-window=3601 /cygdrive/d/Users/ /cygdrive/q/Users I even use MS shadow tools to copy open files on 2003. See my files: http://www.quantumsoft.co.uk/files/pc/save_profile.zip -- 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/
Manfred Rebentisch
2008-May-15 14:48 UTC
RSync from NAS machine over WinXP with cwRSync to another PC
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.> I do this to backup files from Windows 2003 to a NAS. > > Batch file runs on XP. > > set cygwin=notnsec > NET USE q: /DELETE > NET USE q: \\nasdevice\files <passwd> /USER:<nasuser> /PERSISTENT:NO > > rsync -rDPt --chmod=Du+rwx,Fu+rwx --delete --modify-window=3601 > /cygdrive/d/Users/ /cygdrive/q/Users > > I even use MS shadow tools to copy open files on 2003. > See my files: > http://www.quantumsoft.co.uk/files/pc/save_profile.zip >Manfred
Matt McCutchen
2008-May-15 18:55 UTC
RSync from NAS machine over WinXP with cwRSync to another PC
On Thu, 2008-05-15 at 13:11 +0200, Manfred Rebentisch wrote:> 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: ?To copy to Y:, just change the destination of the command to the desired path beginning with /cygdrive/y .> They use rsync server on windows with a "secrets file" and the following > module definition in rsyncd.conf (on WinXP): > > [sharename] > path = //192.168.100.123/path/sub > read only = false > auth users = bkupuser > transfer logging = yes > > Is that the right way?No, since the NAS has its own rsync and the destination share is available at a local path (/cygdrive/y), there is no need to set up an rsync daemon (server) on the Windows machine (unless I'm misunderstanding your setup). Matt -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/rsync/attachments/20080515/a40c32ba/attachment.bin
Stuart Halliday
2008-May-16 09:01 UTC
RSync from NAS machine over WinXP with cwRSync to another PC
> 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/