chore: more rsync
parent
bb88646920
commit
b9546907c4
|
@ -305,6 +305,39 @@ dist</pre>
|
||||||
<div class="highlight highlight-text-adblock">
|
<div class="highlight highlight-text-adblock">
|
||||||
<pre>instaloader +login.txt +args.txt +targets.txt</pre>
|
<pre>instaloader +login.txt +args.txt +targets.txt</pre>
|
||||||
</div>
|
</div>
|
||||||
|
<h2>
|
||||||
|
<a id="user-content-rsync" class="anchor" aria-hidden="true" href="#rsync"
|
||||||
|
><span aria-hidden="true" class="octicon octicon-link"></span></a
|
||||||
|
><a href="https://github.com/WayneD/rsync">rsync</a>
|
||||||
|
</h2>
|
||||||
|
<div class="highlight highlight-source-shell">
|
||||||
|
<pre><span class="pl-c"><span class="pl-c">#</span> Result is dst/src</span>
|
||||||
|
rsync -avzP src dst
|
||||||
|
|
||||||
|
<span class="pl-c"><span class="pl-c">#</span> Result is dst/* with * is from src</span>
|
||||||
|
rsync -avzP src/ dst</pre>
|
||||||
|
</div>
|
||||||
|
<p>Commonly flags:</p>
|
||||||
|
<ul>
|
||||||
|
<li><code>-v</code>: verbose</li>
|
||||||
|
<li><code>-z</code>: compress</li>
|
||||||
|
<li>
|
||||||
|
<code>-P</code>: enable both <code>--partial</code>,
|
||||||
|
<code>--progress</code> to easily resume after interupt
|
||||||
|
</li>
|
||||||
|
<li><code>-n</code>: dry run</li>
|
||||||
|
</ul>
|
||||||
|
<p>Be careful flags (need dry run if not sure):</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<code>-u</code>: skip if files in <strong>dst</strong> is already newer
|
||||||
|
than in <strong>src</strong>, if you want to sync both ways
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<code>--delete</code>: delete files in <strong>dst</strong> if not exist
|
||||||
|
in <strong>src</strong>, useful to sync dst with src
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
<h2>
|
<h2>
|
||||||
<a id="user-content-f2" class="anchor" aria-hidden="true" href="#f2"
|
<a id="user-content-f2" class="anchor" aria-hidden="true" href="#f2"
|
||||||
><span aria-hidden="true" class="octicon octicon-link"></span></a
|
><span aria-hidden="true" class="octicon octicon-link"></span></a
|
||||||
|
|
|
@ -262,22 +262,23 @@ instaloader +login.txt +args.txt +targets.txt
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Result is dst/src
|
# Result is dst/src
|
||||||
rsync -azP src dst
|
rsync -avzP src dst
|
||||||
|
|
||||||
# Result is dst/* with * is from src
|
# Result is dst/* with * is from src
|
||||||
rsync -azP src/ dst
|
rsync -avzP src/ dst
|
||||||
```
|
```
|
||||||
|
|
||||||
Commonly flags:
|
Commonly flags:
|
||||||
|
|
||||||
|
- `-v`: verbose
|
||||||
- `-z`: compress
|
- `-z`: compress
|
||||||
- `-P`: enable both `--partial`, `--progress` to easily resume after interupt
|
- `-P`: enable both `--partial`, `--progress` to easily resume after interupt
|
||||||
- `-n`: dry run
|
- `-n`: dry run
|
||||||
|
|
||||||
Be careful flags (need dry run if not sure):
|
Be careful flags (need dry run if not sure):
|
||||||
|
|
||||||
- `-u`: skip if files in **dst** is already newer than in **src**
|
- `-u`: skip if files in **dst** is already newer than in **src**, if you want to sync both ways
|
||||||
- `--delete`: delete files in **dst** if not exist in **src**
|
- `--delete`: delete files in **dst** if not exist in **src**, useful to sync dst with src
|
||||||
|
|
||||||
## [F2](https://github.com/ayoisaiah/f2)
|
## [F2](https://github.com/ayoisaiah/f2)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue