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

Re: ¿Cómo copiar una carpetacompleta con todo su contenido? ¿"cp" me da fallo?



El Tue, Dec 02, 2008 at 09:21:29AM +0100, Abraham Pérez dijo:

>    El 2 de diciembre de 2008 8:34, fernandojoseGmail
>    <[1]fernandojose.sainz@gmail.com> escribió:
> 
>      Recursivo:
>       vease Recursivo.
> 
>      Otra opción para copiar directorios completos es usar el "tar" para
>      empaquetarlos, más útil para mover entre máquinas.

Con tar precisamente, esta línea es bastante útil:

(cd $DIRECTORIO_ORIGEN; tar cf - . ) | (cd $DIRECTORIO_DESTINO; tar xvpf -)

Un saludo, Miguel.

-- 
You must realize that the computer has it in for you.  The irrefutable
proof of this is that the computer always does what you tell it to do.


Reply to: