-e 'ssh -p port' #参数
例:
rsync -avze 'ssh -p 222' sourceFile destFile
rsync 参数
-l, --links copy symlinks as symlinks
-L, --copy-links transform symlink into referent file/dir
--copy-unsafe-links only "unsafe" symlinks are transformed
--safe-links ignore symlinks that point outside the tree
-k, --copy-dirlinks transform symlink to dir into referent dir
-K, --keep-dirlinks treat symlinked dir on receiver as dir
-H, --hard-links preserve hard links
rsync同步删除
rsync -avz --delete sourceFile destFile
评论已关闭