Skip to content

Instantly share code, notes, and snippets.

@spidersea
Created December 24, 2013 08:49
Show Gist options
  • Save spidersea/8110520 to your computer and use it in GitHub Desktop.
Save spidersea/8110520 to your computer and use it in GitHub Desktop.
命令示例:
rsync -rav -e ssh --exclude='*.svn-base' test/ root@target.org:/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