Backup database before deployment

This commit is contained in:
Laura Hausmann 2023-05-19 22:43:11 +02:00
parent d1d8d795c0
commit 5ee9b802ea
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -3,5 +3,6 @@ set -euxo pipefail
dotnet publish --self-contained -p:PublishSingleFile=true -p:DebugType=embedded -p:EnableCompressionInSingleFile=false -p:PublishReadyToRun=true -p:PublishTrimmed=false -p:DebuggerSupport=false -c Release -r linux-arm64
ssh afrapay@afrapay.lan sudo systemctl stop afrapay-web
ssh afrapay@afrapay.lan /usr/local/bin/afrapay-backup-database.sh
scp -r ./bin/Release/net7.0/linux-arm64/publish afrapay@afrapay.lan:/opt/afrapay
ssh afrapay@afrapay.lan sudo systemctl restart afrapay-web