2023-08-06 23:03:59 +00:00
|
|
|
#!/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
|
2023-08-06 23:10:21 +00:00
|
|
|
rm /tmp/gitea-dump.zip
|
2023-08-06 23:03:59 +00:00
|
|
|
curl "{{ monitorurl }}"
|