From c2f495e812ebfa2dd0619c582b38f7badccb1981 Mon Sep 17 00:00:00 2001 From: Matheson Steplock Date: Mon, 12 Sep 2022 22:13:00 -0400 Subject: [PATCH 1/3] Backup password fix --- remote-backup/run.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/remote-backup/run.sh b/remote-backup/run.sh index 6cc7a33..6e557b4 100755 --- a/remote-backup/run.sh +++ b/remote-backup/run.sh @@ -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}\"" From 7face6d1d60fe17da04002fdbbefc8909bec3f4a Mon Sep 17 00:00:00 2001 From: Matheson Steplock Date: Mon, 12 Sep 2022 23:02:14 -0400 Subject: [PATCH 2/3] Update Changelog --- remote-backup/CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/remote-backup/CHANGELOG.md b/remote-backup/CHANGELOG.md index 46c3e3d..f84dbda 100644 --- a/remote-backup/CHANGELOG.md +++ b/remote-backup/CHANGELOG.md @@ -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 From f0330744b1b2ae6eb0c902ddda39a7cb512ffe21 Mon Sep 17 00:00:00 2001 From: Matheson Steplock Date: Mon, 12 Sep 2022 23:02:30 -0400 Subject: [PATCH 3/3] Bump version --- remote-backup/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remote-backup/config.yaml b/remote-backup/config.yaml index 1042848..90dd0b7 100644 --- a/remote-backup/config.yaml +++ b/remote-backup/config.yaml @@ -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}