Rsync 的一些用法
rsync -avzP -e "ssh -p 29722" --exclude ".git,*.pyc,.DS_Store" user@ip:~/odoo10 ~/Desktop/odoo10
# sudo chown -R user:user DIR
sudo chown -R user:user /home/ubuntu/tmp
rsync -avzP -e "ssh -p 29722" --exclude ".git,*.pyc,.DS_Store" user@ip:~/odoo10 ~/Desktop/odoo10
# sudo chown -R user:user DIR
sudo chown -R user:user /home/ubuntu/tmp