[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mirror de distribuciones



On Thu, Mar 04, 1999 at 08:49:30AM +0100, Rafael Cordones Marcos wrote:

> Ya sé que "Regex" es un expresión regular. Lo que pregunto es qué regex
> hay que poner. ¿el path hasta los links simbólicos? Básicamente en
> debian/dists/slink te puede aparecer un link simbólico en cualquier parte.
> Probaré a poner debian/dists/slink/*

Hmmm... no. si es una expresión regular, debian/dists/slink/* quiere decir:

	debian/dists/slink
	debian/dists/slink/
	debian/dists/slink//
	debian/dists/slink///...

Del manual:

 follow_local_symlinks  none          Regexp of pathnames of local symbolic
                                      links.  Rather than treating them as
                                      symlinks the target files or
                                      directories they reference are used
                                      instead. This makes local symlinks
                                      invisible to mirror.

esto NO es lo que quieres si entendí bien la explicación.  Esto lo que hace
es:

	/home/ftp/pub/debian/dists/slink -> /aqui_hay_mas_espacio/slink

"mirror" ignora la liga _local_, y simplemente pone los archivos en
/aqui_hay_mas_espacio/slink

Si lo que quieres es remover todas las ligas simbólicas fuera de la réplica,
la _única_ forma es borrar TODAS las ligas. Si miras en el manual, más
adelante encontrarás:

  If the remote site contains symlinks that you want to "flatten out" into
  the corresponding files, then do this by changing the flags passed to the
  remote ls which will be either flags_recursive or flags_nonrecursive to
  include L First test this by trying a ls -lRatL on the remote site under
  the FTP command to check whether the remote filestore has any symlink
  loops.  These cause ls to go into an infinite loop - if this happens you
  will have to talk to the manager of the remote area about removing them.

ten mucho cuidado con lo que haces, creo que NO quieres todas las
arquitecturas, así que sería suficiente si copias:

	debian/dists/slink/main/binary-i386


						Marcelo


Reply to: