rsync 常用命令
rsync -avz root@remoteserver:/temp/ /local/server/ #cp all the content of temp from remoteserver to localserver
rsync -avz --exclude=/temp/logs --exclude=/temp/data root@remoteserver:/temp/ /local/server/ #/temp/logs or /temp/logs will not be transfered
rsync -avz root@remoteserver:/temp/ /local/server/ #cp all the content of temp from remoteserver to localserver
rsync -avz --exclude=/temp/logs --exclude=/temp/data root@remoteserver:/temp/ /local/server/ #/temp/logs or /temp/logs will not be transfered