Various improvements

This commit is contained in:
ge
2022-10-09 00:51:08 +03:00
parent 40fb8613be
commit 61294c9d2c
7 changed files with 14 additions and 14 deletions

View File

@ -602,7 +602,6 @@ s3
sources=(.) # just pass validation
targets=(.)
today="$(date +%d_%b_%Y)"
s3cmd_config=~/.s3cfg
prepare() {
systemctl stop gitea.service
sleep 5
@ -610,7 +609,7 @@ s3
backup() {
log -p "Dumping Gitea"
su -c "/usr/local/bin/gitea dump -c /etc/gitea/app.ini \
-f /home/git/.cache/gitea_dump.zip" - git 2>> "$__log_file"
-f /home/git/.cache/gitea_dump.zip" - git 2>> "$log_file"
backups+=(/home/git/.cache/gitea_dump.zip)
tgt_s3cmd s3://mybucket/backups/gitea-$today
}