ãã£ã¬ã¯ããªã©ãããã¾ããã¨ã³ãã¼ãããå ´å
ã³ãã¼å ã»å 両æ¹ã«æ«å°¾ã« / ãã¤ãã¦ãã³ãã¼å ã®ãã£ã¬ã¯ããªã¾ã§æå®ããã
rsync -av /path/to/dir/ remote:/path/to/dir/
rsync -av /path/to/dir remote:/path/to
ã¨ãå¥ã®æ¸ãæ¹ããããã©ãããè¦ãããã¥ããã®ã§ ãã¡ ã
ãã£ã¬ã¯ããªã®æ«å°¾ã« /
ãã¤ããã®ãèè¦ã
ãã¡ã¤ã«ãã³ãã¼ãããå ´å
ã³ãã¼å ã»å 両æ¹ããã¡ã¤ã«ã®ãã¹ã§æå®ããã ãããã¯ã ã³ãã¼å ããã¡ã¤ã«ã®ãã¹ã§ãã³ãã¼å ãæ«å°¾ã« / ãã¤ãããã£ã¬ã¯ããªã®ãã¹ã§æå®ããã
rsync -av /path/to/file remote:/path/to/file ããã㯠rsync -av /path/to/file remote:/path/to/
ãã¾ã
ã³ãã¼å ã»å ã§ãã¹ãåãå ´å
ã³ãã¼å
ã»å
ã§ãã¹ãåããªã -R
ã使ãã®ããããã³ãã¼å
ã®ãã¹æå®ãã¹ãé²ããã®ã§ã
rsync -avR /path/to/dir/ remote:/ rsync -avR /path/to/file remote:/
ã³ãã¼å ããªã¢ã¼ãã§ãè¤æ°æå®ããå ´å
rsync -av remote:/path/to/file1 remote:/path/to/file2 /path/to/dir/
ã¨æ¸ãã¦ããããããªã¢ã¼ããã¹ãåã¯çç¥ã§ããã
rsync -av remote:/path/to/file1 :/path/to/file2 /path/to/dir/