semaphore-playbooks/debian12-forgejo/templates/backup.sh
2023-08-07 01:10:21 +02:00

8 lines
No EOL
308 B
Bash

#!/bin/sh
set +e
d=$(date +%Y-%m-%d)
cd /tmp
sudo -u git /usr/local/bin/forgejo dump --config /etc/forgejo/app.ini --file /tmp/gitea-dump.zip
/usr/local/bin/b2 upload-file --noProgress --quiet kekskurse-backups /tmp/gitea-dump.zip git.keks.cloud/forgejo/$d.zip
rm /tmp/gitea-dump.zip
curl "{{ monitorurl }}"