This commit is contained in:
2024-04-03 11:32:24 +02:00
parent dac7cf1be0
commit 23609b96d0
2 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "bitlab S3 Backup", "name": "bitlab S3 Backup",
"version": "1.0.6", "version": "1.0.7",
"slug": "bitlab-s3-backup", "slug": "bitlab-s3-backup",
"description": "Sync Backups to bitlab S3 storage", "description": "Sync Backups to bitlab S3 storage",
"url": "https://git.bitlab.ch/bitlab/ha-addon", "url": "https://git.bitlab.ch/bitlab/ha-addon",

View File

@@ -4,6 +4,11 @@
# ============================================================================== # ==============================================================================
#bashio::log.level "info" #bashio::log.level "info"
# script global shortcuts
declare -r BACKUP_NAME="ha-backup-$(date +'%Y-%m-%d %H-%M')"
declare -r SSH_HOME="${HOME}/.ssh"
# call Home Assistant to create a local backup # call Home Assistant to create a local backup
# function fails in case local backup is not created # function fails in case local backup is not created
function create-local-backup { function create-local-backup {