Skip to content

Commit

Permalink
Merge pull request #68 from ikifar2012/dev
Browse files Browse the repository at this point in the history
Backup password fix
  • Loading branch information
ikifar2012 authored Sep 13, 2022
2 parents bae7265 + f033074 commit 28be70b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions remote-backup/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2022.9.1

- Backup password fix #68

**Full Changelog**: https://github.com/ikifar2012/remote-backup-addon/compare/2022.9.0...2022.9.1

# 2022.9.0

## Please read before upgrading
Expand Down
2 changes: 1 addition & 1 deletion remote-backup/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Remote Backup
version: "2022.9.0"
version: "2022.9.1"
slug: remote_backup
description: Automatically create and transfer HA backups using SFTP (SCP), rsync, or rclone (experimental)
image: ikifar/remote-backup-{arch}
Expand Down
10 changes: 8 additions & 2 deletions remote-backup/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,14 @@ function create-local-backup {
local -r backup_exclude_folders=$(bashio::config "backup_exclude_folders")
local -r backup_exclude_addons=$(bashio::config "backup_exclude_addons")
local -r base_folders="addons/local homeassistant media share ssl"
local data="{\"name\":\"${BACKUP_NAME}\", \"password\": \"$(bashio::config 'backup_password' '')\"}"

local -r backup_password=$(bashio::config "backup_password")
if bashio::config.has_value "${backup_password}"; then
bashio::log.info "Creating local backup with password."
local data="{\"name\":\"${BACKUP_NAME}\", \"password\": \"${backup_password}\"}"
else
bashio::log.warning "No password set, creating a local backup without password."
local data="{\"name\":\"${BACKUP_NAME}\"}"
fi
if bashio::var.has_value "${backup_exclude_addons}" || bashio::var.has_value "${backup_exclude_folders}"; then
bashio::log.info "Creating partial backup: \"${BACKUP_NAME}\""

Expand Down

0 comments on commit 28be70b

Please sign in to comment.