[Linuxtrent] Re: Copia disco --> disco di una archivio con molti, anzi moltissismi link hardware

  • From: azazel <azazel@xxxxxxxxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Fri, 23 Mar 2007 19:01:31 +0100

>>>>> "Guido" == Guido Brugnara <gdo@xxxxxxxxx> writes:

    Guido> Quindi deduco che il parametro che mi mette nelle
    Guido> condizioni di preservare i link hardware durante la copia è
    Guido> "--preserve".

devi usare --preserve=links, almeno

    Guido> Dalla traduzione sopra esposta pare che "-d" sia il comando
    Guido> abbreviato di "--no-dereference" che invece non è da come
    Guido> si deduce dalla documentazione in inglese.

infatti, la sua opzione abbreviata è -P

la documentazione info del pacchetto coreutils sulla mia debian sid
riporta:
`-d'
     Copy symbolic links as symbolic links rather than copying the
     files that they point to, and preserve hard links between source
     files in the copies.  Equivalent to `--no-dereference
     --preserve=links'.

`-P'
`--no-dereference'
     Copy symbolic links as symbolic links rather than copying the
     files that they point to.

`-p'
`--preserve[=ATTRIBUTE_LIST]'
     Preserve the specified attributes of the original files.  If
     specified, the ATTRIBUTE_LIST must be a comma-separated list of
     one or more of the following strings:

    `mode'
          Preserve the permission attributes.

    `ownership'
          Preserve the owner and group.  On most modern systems, only
          the super-user may change the owner of a file, and regular
          users may preserve the group ownership of a file only if they
          happen to be a member of the desired group.

    `timestamps'
          Preserve the times of last access and last modification.

    `links'
          Preserve in the destination files any links between
          corresponding source files.

    `all'
          Preserve all file attributes.  Equivalent to specifying all
          of the above.

     Using `--preserve' with no ATTRIBUTE_LIST is equivalent to
     `--preserve=mode,ownership,timestamps'.

     In the absence of this option, each destination file is created
     with the permissions of the corresponding source file, minus the
     bits set in the umask and minus the set-user-ID and set-group-ID
     bits.  *Note File permissions::.

comunque quando ti ho proposto il cp -a ho fatto una prova e fa la
cosa giusta
--
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con OGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: