>>>>> " " == andreas haupt <[EMAIL PROTECTED]> writes:

     > Hello, I'm new to rsync and just about to explore its
     > possibilities.

     > Is it possible to use rsync for what I would call a negative
     > sync by which I mean:

     > delete all the files on the remote site which exist on the
     > local site and keep whatever exists only on the remote site?
     > Ie. make the local and remote site really distinct without any
     > files in common?

     > I acknowledge that this probably is contrary to the very
     > purpose of rsync but I was just wondering whether this is
     > possible with a clever combination of the options, maybe two
     > rsync commands in a row?

find . -fprint0 | ssh remote xargs -0 rm -f

Of cause that only matches the filename, not the contents.

MfG
        Goswin

Reply via email to