[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.
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
es:howtos:general_admin:files_filesystem_copying_over_network [2019/02/07 20:09 (UTC)] – slackwarespanol | es:howtos:general_admin:files_filesystem_copying_over_network [2019/08/08 18:17 (UTC)] (actual) – [Sources] slackwarespanol | ||
---|---|---|---|
Línea 1: | Línea 1: | ||
- | <note warning> | ||
<!-- 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). --> | ||
- | ====== | + | ====== |
- | 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 server, I copy all the data from the old server to a new system. In the examples below, I work from the new server and both servers are on the same subnet: | + | Al actualizar un servidor doméstico, copio todos los datos del servidor antiguo |
- | * New server | + | |
- | * Old server | + | |
- | Both the '' | + | Los comandos |
- | + | ====== | |
- | ====== | + | Si necesita copiar archivos o directorios individuales, puede usar el comando |
- | If you need to copy single files or directories, you can use the '' | + | |
< | < | ||
Línea 19: | Línea 17: | ||
</ | </ | ||
- | Flag explanation: | + | Explicación de las opciones |
- | * -r: recursive | + | |
- | * -p: preserve file attributes | + | |
- | * -v: verbose output | + | |
- | In the example above we copy the ''/ | + | En el ejemplo anterior, copiamos el directorio |
- | Please note that the '' | + | Tenga en cuenta que el comando |
- | ====== | + | ====== |
- | 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 46: | Línea 44: | ||
<!-- * Originally written by [[wiki: | <!-- * Originally written by [[wiki: | ||
<!-- * Contributions by [[wiki: | <!-- * Contributions by [[wiki: | ||
- | * Originally written by [[wiki: | + | * Escrito originalmente por[[wiki: |
- | * With help from Patrick Volkerding | + | * Con la ayuda de Patrick Volkerding |
+ | * Traducido por: [[wiki: | ||
<!-- 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 " | <!-- You must remove the tag-word " | ||
{{tag> | {{tag> |