futtern/deploy/local-deploy.sh

10 lines
480 B
Bash
Raw Normal View History

#!/usr/bin/env sh
2024-06-30 08:53:10 +00:00
export HOMEDIR='/home/c3h-futtern/'
. ./deploy/prepare-deploy.sh
ssh leitstelle-futtern 'systemctl --user stop pod-futtern'
2024-06-30 08:53:10 +00:00
ssh leitstelle-futtern "cp ${HOMEDIR}/futtern/app/var/data.db ${HOMEDIR}/backup/data.db-$(date +\"%Y%m%d%H%M%S\")"
ssh leitstelle-futtern "find ${HOMEDIR}/backup/ -type f | sort | head -n -10 | xargs rm -f"
rsync -avz --delete deploy/ leitstelle-futtern:futtern --exclude=var
2024-06-30 08:53:10 +00:00
ssh leitstelle-futtern '/home/c3h-futtern/futtern/update.sh'