Two-way Rsync problems with Deletions

Doug Schasteen dschast at escindex.com
Wed Oct 2 15:35:10 EST 2002


I'm trying to do a two-way rsync and it works ok for creating and
updating files but file deletions are flawed. The only way to sync the
fact that a file was deleted is to use the -delete option, but this
poses a problem. If Server A has file 'foo' and Server B does not. Will
rsync think that 'foo' is new and copy it to Server B? Or will it think
that 'foo' is old and should be deleted from Server A? In my own testing
this seems to be pretty sporadic. Sometimes I delete a file and it just
comes right back, other times I create a file and it gets deleted right
away.

 

I can't help but think this problem could be fixed if I could do some
kind "Delete files that don't exist on the sending side, as long as the
file is older than x minutes". I could be wrong, but I think this would
completely solve my problem. New files would be replicated, and old
deleted files would be removed. The only downside I see is that I
wouldn't be able to delete files that are brand new, I'd have to wait x
minutes before I could delete a newly created file, but to me this is
not nearly as big of a deal as the original problem.

 

Anyone have any experience with this?

 

Thanks.

 

- Doug

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the rsync mailing list