documentazione_3di_riservata:manuali_sysadmin:tar_ssh
Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisioneRevisione precedente | |||
documentazione_3di_riservata:manuali_sysadmin:tar_ssh [2015/11/25 14:31] – spassarotto | documentazione_3di_riservata:manuali_sysadmin:tar_ssh [Data sconosciuta] (versione attuale) – eliminata - modifica esterna (Data sconosciuta) 127.0.0.1 | ||
---|---|---|---|
Linea 1: | Linea 1: | ||
- | Using tar and ssh to efficiently copy files preserving permissions | ||
- | Have you had situations where disk-space is sparse, so making full tars (although compressed) is impossible? Here is an ssh trick that could help you copy over files without using too much diskspace. | ||
- | This trick will tar a directory from a computer, but the file that it would normally create, is standard out, so it is redirected back to the script on the computer you are working on. The computer you are working | ||
- | **ssh user@machine-where-precious-data-is "tar czpf - / | ||
- | |||
- | You are now directly copying data from the " | ||
- | I used this trick to copy users directories from one machine to the other. | ||
- | An alternative command, reverse and not crossing filesystem boundries: | ||
- | |||
- | **tar cpf - / |
/data/attic/documentazione_3di_riservata/manuali_sysadmin/tar_ssh.1448458280.txt.gz · Ultima modifica: 2017/09/08 10:59 (modifica esterna)