chore (infra): tweak backup notifier
This commit is contained in:
parent
a83fd2eb72
commit
fcaef068b8
2 changed files with 4 additions and 3 deletions
|
@ -1,13 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
FORGEJO_MYSQL_CONTAINER="forgejo-db"
|
||||
BACKUP_DIRECTORY="$HOME/backups_to_download/forgejo/"
|
||||
RCHAT_NOTIFIER="$HOME/"
|
||||
BACKUP_DIRECTORY="$HOME/backups/forgejo/"
|
||||
RCHAT_NOTIFIER="$HOME/self-host/scripts/rocketchat_notifier.sh"
|
||||
source "$HOME/.env"
|
||||
|
||||
echo "INFO Creating compressed backup of ${FORGEJO_MYSQL_CONTAINER}"
|
||||
|
||||
rm "$HOME/backups/forgejo/*"
|
||||
rm $HOME/backups/forgejo/*
|
||||
|
||||
sleep 1
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
# --- ./rocketchat_notifier.sh test 'success' 'Message goes here.'
|
||||
# --- ./rocketcaht_notifier.sh test 'error' 'Message goes here.'
|
||||
|
||||
source $HOME/.env
|
||||
declare -A CHANNEL_TO_WEBHOOK
|
||||
CHANNEL_TO_WEBHOOK["backups"]=$RC_WEBHOOK_BACKUPS
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue