Running Rsync on a Windows box. Trying to do replication, and it doesn't seem to be working as expected. I'm using -r. I put test.txt in the source dir. It copied over just fine. Deleted test.txt from the source. And it still exists in the target. Any ideas? Also, using robocopy, you can tell it to wait for X number of changes and loop. Can this be done with rsync? Thanks!
On Fri 08 Apr 2005, Beach Computers wrote:> Running Rsync on a Windows box. > Trying to do replication, and it doesn't seem to be working as expected. > I'm using -r. > I put test.txt in the source dir. > It copied over just fine. > Deleted test.txt from the source. > And it still exists in the target. > Any ideas?Use --delete (it's all in the docs). Paul Slootman
I tried @ECHO OFF SET CYGWIN=nontsec "c:\Program Files\cwRsync\rsync" -avr --delete /cygdrive/c/imail/* sharepoint::sharepoint I get: building file list ... done sent 18307 bytes received 16 bytes 7329.20 bytes/sec total size is 50265912 speedup is 2743.32 And the file in the target is not deleted. Thoughts? -----Original Message----- From: Beach Computers [mailto:groups@beachcomp.com] Sent: Friday, April 08, 2005 11:10 AM To: 'rsync@lists.samba.org' Subject: Full replication Running Rsync on a Windows box. Trying to do replication, and it doesn't seem to be working as expected. I'm using -r. I put test.txt in the source dir. It copied over just fine. Deleted test.txt from the source. And it still exists in the target. Any ideas? Also, using robocopy, you can tell it to wait for X number of changes and loop. Can this be done with rsync? Thanks!
On Fri, Apr 08, 2005 at 01:50:35PM -0400, Beach Computers wrote:> And the file in the target is not deleted.1. Go to the 2.6.4 version of the rsync man page. http://rsync.samba.org/ftp/rsync/rsync.html 2. Read the section on the --delete option (the info you need is in the first paragraph). 3. Be enlightened. 4. Enjoy! ..wayne..
Indeed RTFM did the trick! Thanks much -----Original Message----- From: Wayne Davison [mailto:wayned@samba.org] Sent: Friday, April 08, 2005 1:07 PM To: Beach Computers Cc: rsync@lists.samba.org Subject: Re: Full replication On Fri, Apr 08, 2005 at 01:50:35PM -0400, Beach Computers wrote:> And the file in the target is not deleted.1. Go to the 2.6.4 version of the rsync man page. http://rsync.samba.org/ftp/rsync/rsync.html 2. Read the section on the --delete option (the info you need is in the first paragraph). 3. Be enlightened. 4. Enjoy! ..wayne..