wildcard error in source path?
c.shoemaker at cox.net
Fri Jun 18 17:12:07 GMT 2004
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/ tells rsync to compare the contents of the local dump/ directory
> > with those of the remote one and, in your case, will delete on the
> > remote host any files that don't exist locally.
> > Disclaimer: I haven't used --delete myself, so I could be wrong.
> Yes your statement sounds logic. But the use of --delete is stated as being:
> "delete files that don't exist on the sending side"
> Which I assume means those on the remote side.
> Since it isn't deleting the file on the remote side then rsync is a touch broken.
No, Terry is correct. --delete will only delete files that are missing
_among the files you specify_ If you don't specify a file, it is not
considered at all, for any purpose.
> To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
More information about the rsync