Skip to content

Commit

Permalink
(feat) Add backup before restore
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Oct 30, 2024
1 parent 500f790 commit c66b831
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,9 @@ elif [ "$CMD" = "install" ]; then
echo "Install composer deps"
"${PHP_EXEC}" composer.phar install --no-scripts --no-dev --prefer-dist --no-progress
echo "Try to backup db in case there is a previous one"
"${PHP_EXEC}" ./craft db/backup --silent-exit-on-exception=1
echo "Restore db"
"${PHP_EXEC}" ./craft db/restore ./storage/restore/*.sql
Expand Down

0 comments on commit c66b831

Please sign in to comment.