linux:rsync

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
linux:rsync [2025/05/01 09:35] – [複数ディレクトリをリモートへ同期] ともやんlinux:rsync [2025/12/16 06:45] (現在) – [ローカルディレクトリ → ローカルディレクトリ (ディスク間コピーなど)] ともやん
行 30: 行 30:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<font color="#0087FF"><b>$</b></font> <font color="#26A269">rsync</font> <font color="#A347BA">-avP</font> <font color="#A347BA">--delete</font> <font color="#A347BA">--copy-links</font> /home/samba/source /mnt/backup/+<font color="#0087FF"><b>$</b></font> <font color="#26A269">rsync</font> <font color="#A347BA">-avP</font> <font color="#A347BA">--delete</font> <font color="#A347BA">--dry-run</font> <font color="#A347BA">--copy-links</font> /home/samba/source /mnt/backup/
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
-<html><code>-a</code></html> 元のパーミッションやグループなどを保持したまま同期\\ +''%%-a%%'' 元のパーミッションやグループなどを保持したまま同期\\ 
-<html><code>-v</code></html> 処理中のファイル名を表示\\ +''%%-v%%'' 処理中のファイル名を表示\\ 
-<html><code>-P</code></html> 進行状況を表示\\ +''%%-P%%'' 進行状況を表示\\ 
-<html><code>--delete</code></html> コピー元で削除されたファイルは、コピー先でも削除\\ +''%%--delete%%''コピー元で削除されたファイルは、コピー先でも削除\\ 
-<html><code>--copy-links</code></html> シンボルリンク先のファイルをコピー\\ +''%%--dry-run%%'' ドライランモードを有効にする <wrap em>''%%--delete%%''で事故る前に''%%--dry-run%%''を活用せよ‼️😎</wrap>\\ 
-<html><code>-z</code></html> データを圧縮する(ローカルコピーでは速度が低下するので指定しない)\\ +''%%--copy-links%%'' シンボルリンク先のファイルをコピー\\ 
-<html> +''%%-z%%'' データを圧縮する(ローカルコピーでは速度が低下するので指定しない)\\
-<a href="https://px.a8.net/svt/ejp?a8mat=3YYGEZ+9B72CY+3IZO+I3D2Q" rel="nofollow">選ばれて10年。エンジニアの気持ちが分かる転職エージェントは【アイムファクトリー】</a> +
-<img border="0" width="1" height="1" src="https://www18.a8.net/0.gif?a8mat=3YYGEZ+9B72CY+3IZO+I3D2Q" alt=""> +
-</html>\\+
  
 ==== ローカルディレクトリ → リモートサーバ の転送 ==== ==== ローカルディレクトリ → リモートサーバ の転送 ====
  • linux/rsync.txt
  • 最終更新: 2025/12/16 06:45
  • by ともやん