Re: Errors rsync-ing debian mirror
On Wed, 09 Apr 2003 10:59:57 +0200
Thomas Guettler <pan-newsreader@thomas-guettler.de> wrote:
> > --exclude dists/Debian2.2r7/ --exclude dists/old-proposed-updates/ \
> > --exclude dists/oldstable/ --exclude dists/potato-proposed-updates/ \
> > --exclude dists/potato/ \
> >
> > Why, oh why does it create these links when I've asked it nicely not to,
> > and when there's nothing for them to point at?
>
> Guess:
>
> remove the trailing slash. I think if the exclude has a slash at the
> end means to ignore the content of the directory. Have a look at the man
> page. I never remember the syntax of rsync excludes.
The difference is that if you --exclude a directory and the directory name
has a trailing slash, the directory will not be created (it will be deleted
if you also use --delete-excluded).
For symlinks if you get equivalent behavior by excluding it *without* the
trailing slash.
Kevin
Reply to: