Created
August 10, 2020 10:57
-
-
Save codemicro/f9dc94ecf5831772e1bff92dfba337d0 to your computer and use it in GitHub Desktop.
Update a BookStack installation while also talking a backup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd bookstack | |
rm -rf backups | |
mkdir backups/ | |
echo "Input MySQL user:" | |
read SQLUSER | |
mysqldump -u $SQLUSER -p bookstack > backups/database.sql | |
tar -czvf backups/files.tar.gz .env public/uploads storage/uploads | |
git pull origin release | |
composer install --no-dev | |
php artisan migrate | |
php artisan cache:clear | |
php artisan view:clear |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment