Advertisement
ganryu

llevar

Dec 13th, 2017
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.73 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. OPS="--exclude=*/.git \
  4. --exclude=*.gitignore \
  5. --exclude=app/frontend/runtime/* \
  6. --exclude=app/frontend/web/assets/* \
  7. --exclude=app/backend/runtime/* \
  8. --exclude=app/backend/web/assets/* \
  9. --exclude=app/console/runtime/* \
  10. --exclude=app/console/tests/* \
  11. --exclude=app/backend/adjuntos/* \
  12. --exclude=app/backend/adjuntos \
  13. produccion/ usuario@app.com:/var/www/app"
  14. /usr/bin/rsync -anvz --delete $OPS
  15.  
  16. read -p "Continuar (s/n)" elec
  17. case "$elec" in
  18.         s|S )
  19.                 echo "Actualizando"
  20.                 /usr/bin/rsync -avz --delete $OPS
  21.                 ;;
  22.         n|N )
  23.                 echo "Cancelado"
  24.                 ;;
  25.         * )
  26.                 echo "Invalido"
  27.                 ;;
  28. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement