From 5f1b2960aa34171b5c0baca49e0aaa04a0eb74fd Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 11 Oct 2023 15:33:31 +0200 Subject: [PATCH] Fix blbackup after migration --- bin/bin/blbackup | 8 ++++---- nginx/x-generic.basic.local.loken.nl | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/bin/blbackup b/bin/bin/blbackup index 8823c0c..83e8aae 100755 --- a/bin/bin/blbackup +++ b/bin/bin/blbackup @@ -1,7 +1,7 @@ #/bin/sh -name=$(ssh www-data@cemophora 'cd dbmanager && ./bin/console db:backup bluelinked' | awk -F'-|\\.def' '{split($1,a," ")}$0=a[4]') -scp -C www-data@cemophora:/var/www/dbmanager/${name} ~/projects/dbmanager -cd ~/projects/dbmanager && ./bin/console db:purge bluelinked && ./bin/console db:restore bluelinked ${name} +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@simalia:/var/www/dbmanager/${name} ~/projects/dbmanager +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/ diff --git a/nginx/x-generic.basic.local.loken.nl b/nginx/x-generic.basic.local.loken.nl index 22141c8..c51a111 100644 --- a/nginx/x-generic.basic.local.loken.nl +++ b/nginx/x-generic.basic.local.loken.nl @@ -27,7 +27,7 @@ server { # Add index.php to the list if you are using PHP index index.html index.htm index.php; - server_name "~^(?.+)\.basic.local\.loken\.nl$"; + server_name "~^(?.+)\.basic\.local\.loken\.nl$"; location / { # First attempt to serve request as file, then