add image download to blbackup

This commit is contained in:
Tim 2023-02-03 18:19:46 +01:00
parent 41a372ee92
commit 55aeed421a

View File

@ -3,3 +3,5 @@
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@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 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} cd ~/projects/dbmanager && ./bin/console db:purge bluelinked && ./bin/console db:restore bluelinked ${name}
scp -Cr www-data@cemophora:/var/www/bluelinked.loken.nl/shared/public/uploads/images/ ~/projects/bluelinked/public/uploads/