首页 > 代码库 > Rsync远程部署

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/* admin@121.43.229.153:/var/www/html/h5/pdh5

  

Rsync远程部署