snipt

Ctrl+h for KB shortcuts

Bash

SSH Streaming tar

ssh $SERVER tar -czf - $FILEDIR > $LOCALFILE.tgz
https://snipt.net/embed/7586d5131571a483fd351a6ad3d17f4a/
/raw/7586d5131571a483fd351a6ad3d17f4a/
7586d5131571a483fd351a6ad3d17f4a
bash
Bash
1
2019-06-26T17:51:16
True
False
False
/api/public/snipt/6901/
ssh-streaming-tar
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>ssh <span class="nv">$SERVER</span> tar -czf - <span class="nv">$FILEDIR</span> &gt; <span class="nv">$LOCALFILE</span>.tgz </span></pre></div> </td></tr></table>
archive, shell, ssh, tar