some updates, cleanup, fix helperbot b2 upload step

This commit is contained in:
Ruben 2025-07-17 00:25:14 -05:00
commit 4e54419a7e
No known key found for this signature in database
GPG key ID: 8EA836555FB6D9A5
3 changed files with 112 additions and 11 deletions

View file

@ -300,7 +300,7 @@ function b2_upload {
fi
# upload file specified
backblaze-b2 authorize-account $B2_KEYID $B2_SECRET
backblaze-b2 upload-file $B2_BACKUP_BUCKET ""$1"/"$2".zst" ""$2".zst"
backblaze-b2 upload-file $B2_BACKUP_BUCKET "$1"/"$2" "$2"
backblaze-b2 clear-account # just to ensure we won't stay authenticated afterwards
# clear out secrets
unset $(grep -v '^#' /etc/secrets/b2.env | sed -E 's/(.*)=.*/\1/' | xargs)