Created
December 24, 2013 08:49
-
-
Save spidersea/8110520 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
命令示例: | |
rsync -rav -e ssh --exclude='*.svn-base' test/ [email protected]:/home/target_dir/ | |
--exclude="" 删除某类文件或目录 | |
test 要同步的本地文件夹 | |
root@xxxxx:/xxxx/ 目标目录文件夹 | |
使用该命令对端不需要启动rsync服务,只需要ssh信任即可 | |
目标目录可以与本地目录做位置做互换 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment