Logically, this is correct behaviour, I think.
dump/* is a wildcard that matches every _existing_ local file in the
dump/ directory. Since the file you deleted doesn't exist, it isn't
considered by rsync.
dump/ tells rsync to compare the contents of the local dump/ directory
with
As you say, it does delete files that don't exist on the sending side
and I can see why the behaviour looks wrong at first glance
The difference between dump/* and dump/ is the list of files you are
giving to rsync in the first place.
With dump/*:
For each file in dump/, do {
Comapre
On Fri, Jun 18, 2004 at 09:50:22AM +0100, Stuart Halliday wrote:
Logically, this is correct behaviour, I think.
dump/* is a wildcard that matches every _existing_ local file in the
dump/ directory. Since the file you deleted doesn't exist, it isn't
considered by rsync.
dump/
If I use :
rsync --delete -va dump/* remote::home
to mirror a local directory containing several files to a remote server then these are
copied as expected.
However, if I delete a file in 'dump' and do the command again then this file in
'remote' is NOT deleted.
But this works:
rsync