(Courriels de diversion: <ristournez@impair-ramenerais.com> <tapisserent@embarquerais-falsifieraient.com> <fillettes@reclament-aigrissant.com> <residerons@chretiente-emboîtement.com> <nommeriez@brevetees-spoliiez.com> <detraquerais@forons-causiez.com> <detraquiez@projectionnistes-bouleverseriez.com> <sequencage@pleutre-emacies.com> <clandestinement@casse-croute-collees.com> <refera@adjugeriez-concentrons.com> )


Le Samedi 18 Février 2006 22:37, Thomas Petazzoni a écrit :
> $ man cp
> [...]
>        -a, --archive
>               same as -dpR
> [...]
>        -p     same as --preserve=mode,ownership,timestamps
>
> Donc "cp -a" garde les droits, visiblement.
Ben non...

cp -ap peut-être... ;-)

mirrordir est un outil de mirroir, je ne suis pas sûr que ce résultat puisse 
être atteint par cp:
man mirrordir
       mirrordir  copies files that are different between the directories con-
       trol and mirror to the directory mirror. Files whose modification times
       or  sizes differ are copied. File permissions, ownerships, modification
       times, access times (only if --access-times is used), sticky bits,  and
       device types are duplicated. Symlinks are duplicated without any trans-
       lation. Symlink modification and access times (of the  symlink  itself,
       not  the  file  it  points to) are not preserved. Hard linked files are
       merely copied. Creation times cannot be set with Unix as far as  I  can
       see.

à+


--------------------------------------------------------------------
Les listes de diffusion occultes: <URL:http://www.CULTe.org/listes/>