[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Próxima revisión
Revisión previa
es:howtos:general_admin:files_filesystem_copying_over_network [2019/02/06 11:29 (UTC)] – creado slackwarespanoles:howtos:general_admin:files_filesystem_copying_over_network [2019/08/08 18:17 (UTC)] (actual) – [Sources] slackwarespanol
Línea 1: Línea 1:
 <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). -->
-====== How to copy files directories  filesystems via network. ====== +====== Cómo copiar archivos directorios sistemas de archivos a través de la red. ====== 
-The article describes ways of copying content over network+El artículo describe formas de copiar contenido a través de la red.
  
-When upgrading a home serverI copy all the data from the old server to new systemIn the examples belowI work from the new server and both servers are on the same subnet+Al actualizar un servidor domésticocopio todos los datos del servidor antiguo un nuevo sistemaEn los ejemplos a continuacióntrabajo desde el nuevo servidor y ambos servidores están en la misma subred
-  New server (IP: 192.168.0.14) +   Nuevo servidor (IP: 192.168.0.14) 
-  Old server (IP: 192.168.0.1) +   Servidor antiguo (IP: 192.168.0.1)
  
-Both the ''ssh'' and ''scp'' commands communicate over secure connection (TCP port 22). Please note that you need to enable the ''sshd'' daemon on the remote host.+Los comandos '' ssh '' '' scp '' se comunican través de una conexión segura (puerto TCP 22). Tenga en cuenta que debe habilitar el demonio '' sshd '' en el host remoto.
  
  
- +====== Copiar archivos directorios ====== 
-====== Copy Files Directories ====== +Si necesita copiar archivos o directorios individualespuede usar el comando '' scp '': \\
-If you need to copy single files or directoriesyou can use the ''scp'' command:\\ +
  
 <code> <code>
Línea 18: Línea 17:
 </code> </code>
  
-Flag explanation: +Explicación de las opciones 
-   -r: recursive (copy all the content of ''/etc'' including its subdirectories+   * -r: recursivo (copia todo el contenido de '' /etc '' incluyendo sus subdirectorios
-   -p: preserve file attributes (eg. file creation or modification times+   * -p: preservar los atributos del archivo (por ejemplo, tiempos de creación o modificación del archivo
-   -v: verbose output+   * -v: salida detallada
  
-In the example above we copy the ''/etc'' directory located on a remote host (the old server: 192.168.0.1) to ''/local_dir'' on the local host ("newserver). +En el ejemplo anterior, copiamos el directorio '' / etc '' ubicado en un host remoto (el servidor antiguo: 192.168.0.1) en '' / local_dir '' en el host local (servidor "nuevo").
  
-Please note that the ''scp'' command cannot copy the whole file system hierarchy including ''/proc'', ''/dev'' or ''/lost+found''Fortunatelythere is a workaround which was [[http://www.linuxquestions.org/questions/slackware-14/copy-whole-filesystem-via-scp-4175449321/#post4887869|provided]] by Patrick Volkerding.+Tenga en cuenta que el comando '' scp '' no puede copiar toda la jerarquía del sistema de archivos, incluyendo '' /proc '', '' /dev '' '' /lost + found ''Afortunadamentehay una solución que fue [[http://www.linuxquestions.org/questions/slackware-14/copy-whole-filesystem-via-scp-4175449321/#post4887869|provided]] por Patrick Volkerding.
  
-====== Copy whole filesystem hierarchy ======+====== Copiar toda la jerarquía del sistema de archivos ======
  
-The following command should successfully copy a whole filesystem hierarchy+El siguiente comando debe copiar con éxito una jerarquía completa del sistema de archivos:
 <code bash> <code bash>
 ssh root@192.168.0.1 "(cd / ; tar cf - . )" | (mkdir -p /local_dir ; cd /local_dir ; umask 000 ; tar xvf -) ssh root@192.168.0.1 "(cd / ; tar cf - . )" | (mkdir -p /local_dir ; cd /local_dir ; umask 000 ; tar xvf -)
Línea 45: Línea 44:
 <!-- * Originally written by [[wiki:user:xxx | User X]] --> <!-- * Originally written by [[wiki:user:xxx | User X]] -->
 <!-- * Contributions by [[wiki:user:yyy | User Y]] --> <!-- * Contributions by [[wiki:user:yyy | User Y]] -->
-  * Originally written by [[wiki:user:wisedraco|John Ciemgals]] 2013/02/10 03:51 \\ +  * Escrito originalmente por[[wiki:user:wisedraco|John Ciemgals]] 2013/02/10 03:51 \\ 
-  * With help from Patrick Volkerding +  * Con la ayuda de Patrick Volkerding 
 +  * Traducido por:  [[wiki:user: slackwarespanol | Victor]] 2019/08/08 18:15 (UTC)
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 <!-- You must remove the tag-word "template" below before saving your new page --> <!-- You must remove the tag-word "template" below before saving your new page -->
 {{tag>howtos copy ssh}} {{tag>howtos copy ssh}}
 es:howtos:general_admin:files_filesystem_copying_over_network ()