snipt

Ctrl+h for KB shortcuts

Bash

Quick rsync

1
2
3
4
5
svn update

find . \( -not -ipath *.svn* -not -iname changed-list.txt \) -mmin -60 > ./changed-list.txt

rsync -v --files-from=./changed-list.txt . [email protected]:/path/to/code/directory
https://snipt.net/embed/1e4b90cca7a7c682270f3ddab1df9978/
/raw/1e4b90cca7a7c682270f3ddab1df9978/
1e4b90cca7a7c682270f3ddab1df9978
bash
Bash
6
2019-06-18T01:24:52
True
False
False
/api/public/snipt/27794/
quick-rsync
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>svn update </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>find . <span class="se">\(</span> -not -ipath *.svn* -not -iname changed-list.txt <span class="se">\)</span> -mmin -60 &gt; ./changed-list.txt </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a>rsync -v --files-from<span class="o">=</span>./changed-list.txt . [email protected]:/path/to/code/directory </span></pre></div> </td></tr></table>
bash, command, rsync, svn