Fix blbackup after migration

This commit is contained in:
Tim 2023-10-11 15:33:31 +02:00
parent 0e6d1ef4ba
commit 5f1b2960aa
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
#/bin/sh #/bin/sh
name=$(ssh www-data@cemophora 'cd dbmanager && ./bin/console db:backup bluelinked' | awk -F'-|\\.def' '{split($1,a," ")}$0=a[4]') name=$(ssh www-data@simalia 'cd dbmanager && ./bin/console db:backup bles' | awk -F'-|\\.def' '{split($1,a," ")}$0=a[4]')
scp -C www-data@cemophora:/var/www/dbmanager/${name} ~/projects/dbmanager scp -C www-data@simalia:/var/www/dbmanager/${name} ~/projects/dbmanager
cd ~/projects/dbmanager && ./bin/console db:purge bluelinked && ./bin/console db:restore bluelinked ${name} cd ~/projects/dbmanager && ./bin/console db:purge bles && ./bin/console db:restore bles ${name}
scp -Cr www-data@cemophora:/var/www/bluelinked.loken.nl/shared/public/uploads/images/ ~/projects/bluelinked/public/uploads/ scp -Cr www-data@simalia:/var/www/bles.bluelinked.nl/shared/public/uploads/images/ ~/projects/bles/public/uploads/

View File

@ -27,7 +27,7 @@ server {
# Add index.php to the list if you are using PHP # Add index.php to the list if you are using PHP
index index.html index.htm index.php; index index.html index.htm index.php;
server_name "~^(?<sub>.+)\.basic.local\.loken\.nl$"; server_name "~^(?<sub>.+)\.basic\.local\.loken\.nl$";
location / { location / {
# First attempt to serve request as file, then # First attempt to serve request as file, then