Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- OPS="--exclude=*/.git \
- --exclude=*.gitignore \
- --exclude=app/frontend/runtime/* \
- --exclude=app/frontend/web/assets/* \
- --exclude=app/backend/runtime/* \
- --exclude=app/backend/web/assets/* \
- --exclude=app/console/runtime/* \
- --exclude=app/console/tests/* \
- --exclude=app/backend/adjuntos/* \
- --exclude=app/backend/adjuntos \
- produccion/ usuario@app.com:/var/www/app"
- /usr/bin/rsync -anvz --delete $OPS
- read -p "Continuar (s/n)" elec
- case "$elec" in
- s|S )
- echo "Actualizando"
- /usr/bin/rsync -avz --delete $OPS
- ;;
- n|N )
- echo "Cancelado"
- ;;
- * )
- echo "Invalido"
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement