Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- now=$(date +"%m_%d_%Y-%H:%M:%S");
- mysqldump -u root -pYOUR_PASSWORD your_db > /home/user/backups/sitename_db_$now.sql;
- echo "Backup SQL DB Before Updating";
- git pull;
- composer install;
- app/console assetic:dump;
- app/console doctrine:schema:update --force;
- app/console cache:clear --env=prod --no-warmup;
- app/console assets:install --relative;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement