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

Re: Rsync sin copiar directorios montados remotamente [SOLUCIONADO]



El Viernes, 21 de Septiembre de 2007, Iñaki Baz Castillo escribió:

> ---------------------------------------------------------------------------
> -x, --one-file-system
>  This tells rsync to avoid crossing a filesystem boundary when recursing.
> This does not limit the user's ability to specify items to copy from
> multiple filesystems, just rsync's recursion through the hierarchy of each
> directory that the user specified, and also the analogous recursion on the
> receiving side during deletion. Also keep in mind that rsync treats a
> “bind” mount to the same device as being on the same filesystem.
>
> If this option is repeated, rsync omits all mount-point directories from
> the copy. Otherwise, it includes an empty directory at each mount-point it
> encounters (using the attributes of the mounted directory because those of
> the underlying mount-point directory are inaccessible).
> ---------------------------------------------------------------------------
>
> Parece lo que quiero, es decir, copiaría /home pero como recursivamente
> encuentra /home/nfs_mount que es un punto de montaje lo omitiría (otra cosa
> es que yo indique específicamente que copie /home/nfs_mount, ¿es así?).

He hecho alguna prueba montándome unos directorios NFS y tal y parece que 
funciona. Es decir, si le dices que copie /home y /home contiene una 
subcarpeta que es un punto de montaje remoto su contenido no se copia (sólo 
la carpeta).




-- 
Iñaki Baz Castillo



Reply to: