[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 previaPróxima revisiónAmbos lados, revisión siguiente | ||
es:howtos:general_admin:files_filesystem_copying_over_network [2019/02/07 20:10 (UTC)] – [How to copy files \ directories \ filesystems via network.] slackwarespanol | es:howtos:general_admin:files_filesystem_copying_over_network [2019/02/07 20:20 (UTC)] – [Copy whole filesystem hierarchy] slackwarespanol | ||
---|---|---|---|
Línea 11: | Línea 11: | ||
- | ====== | + | ====== |
- | If you need to copy single files or directories, you can use the '' | + | Si necesita copiar archivos o directorios individuales, puede usar el comando |
< | < | ||
Línea 18: | Línea 18: | ||
</ | </ | ||
- | 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 -) |