scpã¨rsyncã®æä½ã®éããæ°ãã¤ããã¨ãã
scpã§ããµãä½æ¥ãã¦ããããriywoããã®ãã¹ããè¦ã¤ãã¦è³ªåãã¦ã¿ãã
ããã¦scpããã©ã¬ã«ã«ãã¦ãã¾ã£ãã®ãå¤æãã¹ã ã£ããªã¼ããã©æ¤è¨¼ããçºã«ã¯æéãªãã£ãããä»æ¹ãªããª
scp使ããªãæ´¾
@riywo ããä½ä½¿ãæ´¾ã§ããï¼
2012-07-27 18:38:13 via YoruFukurou to @riywo
@kenjiskywalker rsyncã§ãããscpã¯ã¢ãããã¯ã«æ´æ°ã§ããªãã®ã§ã
è¤æ°ã®ãã¡ã¤ã«ã¨ãã¯rsync使ããã©
ã®ã¬ãã¤ããããã®å¤§ãããã¡ã¤ã«ã¯scpã§ä½¿ãåãã¦ãã
ãããä½ã§ä½¿ãåãã¦ããã ã£ãã£ã¦...
æãè¿ãã¦ã¿ã¦
ãã³ãã¼å¯¾è±¡ã®ãã¡ã¤ã«ã大ããã¨ãä¸æãã¡ã¤ã«ã§ãã£ã¹ã¯ãé¼è¿«ããå¯è½æ§ããããã
ã¨ãã貧ä¹èãçç±ããã ã£ããã¨ãæãåºãã¦
赤ãå®ã¯ãããã
$ rsync -av /tmp/hoge.img /tmp/hoge2.img
ã¨ããå ´åã
$ ls -la /tmp/
ãããã¨ããã£ã¬ã¯ããªå
ã«ä¸æãã¡ã¤ã«ã¨ãã¦
ã.hoge2.img.MbWbveã ã®ãããªãã¡ã¤ã«ãã¤ãããã¦ããã®ããããã¾ãã
o scp
ã³ãã¼å¯¾è±¡ã®ãã¡ã¤ã«ãç´æ¥æ¸ãè¾¼ãçº
éä¸ãã£ã³ã»ã«ãªã©ããå ´åã転éå
ã®ãã¡ã¤ã«ã¯ä¸å®å
¨ãªç¶æ
ã«ãªãã¾ãã
o rsync
転éç¨ã®ä¸æãã¡ã¤ã«ãä½æãã転éãå®æããæç¹ã§
ä¸æãã¡ã¤ã«ããã³ãã¼å¯¾è±¡ã®ãã¡ã¤ã«ã¸ç§»åããçºã転éå
ã®
æ´æ°å¯¾è±¡ã®ãã¡ã¤ã«ã¯ã転éå
ã§å®å
¨ã«ã³ãã¼ãããå¾ã«ä¸æ¸ãããã¾ãã
ã®ã§ããã¡ã¤ã«ã®ä¿å
¨æ§ããèããã¨
rsyncã®æ¹ãï¼ã¯ãã·ã§ã³ç½®ãã¦ãã®ã§å®å
¨ããªã¨æãã¾ãã
ã¾ããä¸æãã¡ã¤ã«ãªããä½ã£ã¦ãããã£ã¦äººã¯
rsync ã« --inplace ã£ã¦ãªãã·ã§ã³ä»ããã°ä¸æãã¡ã¤ã«ã¤ãããªãã§
ç´æ¥ä¸æ¸ããã¦ããã¾ãã
ã½ã¼ã¹å®å
¨ã«èªãã ããã§ã¯ãªãã®ã§æã
足ããªãã¨ãããããã¨æãã¾ãã®ã§
誤ããªã©ããã¾ããããææé ããã°ã¨æãã¾ãã
scpã§ãã£ã¦ãããã¨ãrsyncã§ãã£ã¦ãããããªã
ç¡æèã«ä½¿ã£ã¦ãã³ãã³ãã¨ããç¡æèã«ä½¿ã£ã¦ããªãã·ã§ã³ã¨ã
å½ããåã®ããã«ãªã£ã¦ãã¾ã£ã¦ããã®åå¨èªä½ã«çåãæ±ããªããªãã®è害åã®æåãªã®ã§
常ã«ãªãã§ã ãããã£ã¦èãããã¨å¿ããªãããã«ãã¦ãããããã®ã§ãï¼
( '-')-3