8 lines
No EOL
308 B
Bash
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 }}" |