Yes I've tried --delete :)
It works fine if you specify an existing directory, but I don't want the
overhead of scanning whole directory tree's when I already know what file I
want to delete.  Currently I'm using --delete -a on the whole home directory,
but when you start getting to more than a few thousand updates a day a
significant amount of memory and I/O goes on building up the directory lists :(

Cheers for your suggestion :)
Seeya
Shez

On Tue, 04 Jul 2000, you wrote:
>On Tue, Jul 04, 2000 at 04:50:08AM +1000, Shez wrote:
>
>> In an attempt to reduce these resource usage problems I want to rsync only the
>> particular file that has been updated, rather than the whole directory.  With
>> modified and new files this is easy, but I can't work out how to get rsync to
>> delete a single file - is this possible?  I know I could use ssh to do this,
>> but its a bit irritating to have to insert a special case for deletions.
>
>Have you tryed the --delete option?  Sorry to ask the obvious.  This will
>delete files that the user deleted in their home directory on the target's
>filesystem, so they should be the same.
>
>Read the help first, and maybe set --delete-max=10 just to be safe, if your
>version supports it.
>
>Regards,
>Robert Davidson.
-- 

--
NSL NET Ltd, 26 Forth Street, Edinburgh, EH1 3LH, UK
tel + 44 (0)131 477 8215  fax + 44 (0)131 477 8223  http://www.nsl.net

Reply via email to