diff --git a/cellar-influxdb/backup.sh b/cellar-influxdb/backup.sh index f308d37..f663a59 100755 --- a/cellar-influxdb/backup.sh +++ b/cellar-influxdb/backup.sh @@ -1 +1,10 @@ -influx backup $BACKUP_NAME --token $CELLAR_ADMIN_TOKEN --host $CELLAR_HOST \ No newline at end of file +#!/bin/sh + +influx backup $BACKUP_NAME --token $CELLAR_ADMIN_TOKEN --host $CELLAR_HOST +zip -r $BACKUP_NAME.zip $BACKUP_NAME +az storage blob upload \ + --account-name "cellarbackupstorage" \ + --container-name "cellar-backups" \ + --name $BACKUP_NAME.zip \ + --file $BACKUP_NAME.zip \ + --auth-mode login \ No newline at end of file