documentazione_3di_riservata:manuali_sysadmin:tar_ssh
Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Prossima revisione | Revisione precedente | ||
documentazione_3di_riservata:manuali_sysadmin:tar_ssh [2015/11/25 14:29] – creata 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 - / | ||
- | • Articles | ||
- | • Robert de Bock | ||
- | • Add new comment | ||
- | |||
- | Comments | ||
- | Tue, 08/12/2014 - 17:02 — Kai (not verified) | ||
- | Also, if you wish to create a | ||
- | Also, if you wish to create a remote backup tar, tar into an ssh-pipe which remotely cats stdin into your target file: | ||
- | tar czf - -C / | ||
- | • reply | ||
- | Wed, 08/06/2014 - 12:26 — Amyvcb10 (not verified) | ||
- | I have always had issues with | ||
- | I have always had issues with managing disk-space. I was looking for a perfect solution to copy files efficiently without using too much disk space. I have never used tar and ssh for copying files and I am impressed with this method. snore stop | ||
- | • reply | ||
- | Sat, 06/07/2014 - 10:25 — Limdi (not verified) | ||
- | Easy way to monitor transfer | ||
- | Easy way to monitor transfer speed: pv | ||
- | Just put it between two pipes. a | pv | b pipes a to pv to b. | ||
- | | ||
- | Example: | ||
- | ssh user@machine-where-precious-data-is "tar czpf - / | ||
- | • reply | ||
- | Thu, 01/23/2014 - 11:12 — Angelo Schneider (not verified) | ||
- | Some people call this command | ||
- | Some people call this command sequene " | ||
- | • reply | ||
- | Sun, 11/24/2013 - 13:31 — Alex (not verified) | ||
- | Is there any way to display | ||
- | Is there any way to display progress and transfer speed? | ||
- | • reply | ||
- | Thu, 07/18/2013 - 22:26 — Dean (not verified) | ||
- | Any idea what to do if I'm | ||
- | Any idea what to do if I'm getting a broken pipe message? | ||
- | • reply | ||
- | Mon, 12/17/2012 - 15:43 — KrK (not verified) | ||
- | Mistake is in the 2nd | ||
- | Mistake is in the 2nd example. "tar cXpf" - ' | ||
- | Also you may consider to use ' | ||
- | On some UNIXes, like HP-UX or Solaris ' | ||
- | • reply | ||
- | Wed, 12/19/2012 - 09:16 — Robert de Bock | ||
- | You are correct, removed the | ||
- | You are correct, removed the " | ||
- | • reply | ||
- | Sun, 12/23/2012 - 01:23 — KrK (not verified) | ||
- | NP. Btw, thx for the article. | ||
- | NP. Btw, thx for the article. I work with different UNIXes for almost | ||
- | • reply | ||
- | Tue, 08/10/2010 - 08:53 — Stefan (not verified) | ||
- | Perfect: ssh | ||
- | Perfect: | ||
- | ssh user@machine-where-precious-data-is "tar czpf - / | ||
- | Thanks for a wicked useful trick! | ||
/data/attic/documentazione_3di_riservata/manuali_sysadmin/tar_ssh.1448458163.txt.gz · Ultima modifica: 2017/09/08 10:59 (modifica esterna)