Rsync远程部署

 

1,使用Rsync实现远程部署

#!/bin/bash
cd /var/maven/pdh5/dev/pdh5
git checkout dev
git pull origin dev

rsync --exclude=*\.log --exclude=\.git* --exclude="log/" -avz /var/maven/pdh5/dev/pdh5/* [email protected]:/var/www/html/h5/pdh5

  

转载于:https://www.cnblogs.com/wanhua-wu/p/6513912.html

你可能感兴趣的:(Rsync远程部署)