On Thu, Oct 28, 2004 at 09:54:00AM -0700, Wayne Davison wrote:
> On Thu, Oct 28, 2004 at 01:15:18PM +0100, Dale Amon wrote:
> > I've looked at the shell command hack but don't see a way to get a
> > remote 'rm /mydir/foo' to execute that way.
>
> If you're using ssh or rsh as your rsync connection
On Thu, Oct 28, 2004 at 01:15:18PM +0100, Dale Amon wrote:
> I've looked at the shell command hack but don't see a way to get a
> remote 'rm /mydir/foo' to execute that way.
If you're using ssh or rsh as your rsync connection, you can simply do
this:
ssh host rm /mydir/foo /mydir/bar /yourdir
I've a particular situation in which I need to sometimes
delete one or two files from a remote site. I haven't
figured out a way to do it with rsync yet... I've considered
playing games with --exclude and --delete but I'm a bit
nervous of the chances of mayhem by a simple error.
Situation is a rem