some updates, cleanup, fix helperbot b2 upload step
This commit is contained in:
parent
866e9ebcf1
commit
4e54419a7e
3 changed files with 112 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue