diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 5ceffa4..07b91b9 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -35,9 +35,9 @@ jobs: # stop services ssh ${USERNAME}@${HOST} systemctl --user stop pod-futtern # backup database - ssh ${USERNAME}@${HOST} cp ${TARGETDIR}/app/var/data.db ${TARGETDIR}/backup/data.db-$(date +"%Y%m%d%H%M%S") + ssh ${USERNAME}@${HOST} cp ${TARGETDIR}/app/var/data.db ${TARGETDIR}/../backup/data.db-$(date +"%Y%m%d%H%M%S") # only keep last 10 backupts - ssh ${USERNAME}@${HOST} ls -1tr ${TARGETDIR}/backup/ | head -n -10 | xargs -d '\n' rm -f -- + ssh ${USERNAME}@${HOST} ls -1tr ${TARGETDIR}/../backup/ | head -n -10 | xargs -d '\n' rm -f -- # SCP files to the remote host rsync -avz --delete deploy/ ${USERNAME}@${HOST}:${TARGETDIR} --exclude=var # run update script