Hello.. I'm attempting to copy/sync a development directory on my laptop to our web server, and for some reason dot-files are being copied but not deleted. Command line: rsync -rvva --delete-after -e ssh ./ server.com:/var/www/html/project/ The symptom is that I've got files like '.Makefile.swp' and '.hidden.php.swp' on the server (vi temp files) even after deleting them from the laptop and running the rsync command again. If I create a file called '.foo' and run rsync, it will be created on the server, but if I delete .foo and run rsync again, it isn't deleted from the server. I've searched the web, but this is a hard problem to search for. I've read the documentation, but it says it should work. I've read some of the mailing list archive, but I didn't find a way to search it. I haven't read the source (yet), because I was hoping that there's someone who's seen this before. I've got Redhat 9.0, rsync-2.5.5-4.i386.rpm, openssh-3.7.1p2, ext3 file systems, using tcsh in an rxvt terminal window, and the phase of the moon is half-full. -- Penelope Fudd <pfudd@speed-test.net>
On Tue, Dec 16, 2003 at 11:37:38AM -0800, Penelope Fudd wrote:> rsync -rvva --delete-after -e ssh ./ server.com:/var/www/html/project/Prior to 2.5.6, --delete-after did not imply --delete, so rsync 2.5.5 doesn't do any deletions at all with that command. ..wayne..
On Tue, Dec 16, 2003 at 11:37:38AM -0800, Penelope Fudd wrote:> Hello.. > > I'm attempting to copy/sync a development directory on my laptop to our > web server, and for some reason dot-files are being copied but not > deleted. > > Command line: > rsync -rvva --delete-after -e ssh ./ server.com:/var/www/html/project/ > > The symptom is that I've got files like '.Makefile.swp' and > '.hidden.php.swp' on the server (vi temp files) even after deleting them > from the laptop and running the rsync command again. > > If I create a file called '.foo' and run rsync, it will be created on > the server, but if I delete .foo and run rsync again, it isn't deleted > from the server. > > I've searched the web, but this is a hard problem to search for. I've > read the documentation, but it says it should work. > I've read some of the mailing list archive, but I didn't find a way to > search it. > I haven't read the source (yet), because I was hoping that there's > someone who's seen this before. > > I've got Redhat 9.0, rsync-2.5.5-4.i386.rpm, openssh-3.7.1p2, ext3 file > systems, using tcsh in an rxvt terminal window, and the phase of the > moon is half-full.Did you specify --delete, As near as i can tell --delete-after didn't force --delete until after 2.5.5 was released. You might want to upgrade to something a bit more current. -- ________________________________________________________________ J.W. Schultz Pegasystems Technologies email address: jw@pegasys.ws Remember Cernan and Schmitt
On Tue, Dec 16, 2003 at 11:37:38AM -0800, Penelope Fudd wrote:> Hello..--delete option should do it. older version of rsync (I think pre 2.5.5 or 2.5.6 did not force --delete if --delete-after was invoked)> I've got Redhat 9.0, rsync-2.5.5-4.i386.rpm, openssh-3.7.1p2, ext3 file > systems, using tcsh in an rxvt terminal window, and the phase of the > moon is half-full.Now thats a description of environment that we should see more often. Has all the important data... (yes I mean the phase of the moon). TMC -- Tomasz M. Ciolek ******************************************************************************* email: tmc at dreamcraft dot com dot au ******************************************************************************* GPG Key ID: 0x41C4C2F0 Key available on www.pgp.net ******************************************************************************* Everything falls under the law of change; Like a dream, a phantom, a bubble, a shadow, like dew or flash of lightning. You should contemplate like this. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/rsync/attachments/20031217/c026f6d8/attachment.bin