diff --git a/duplicacy/config.json b/duplicacy/config.json index 6661265..8abfbad 100644 --- a/duplicacy/config.json +++ b/duplicacy/config.json @@ -1,6 +1,6 @@ { "name": "duplicacy", - "version": "20210720.10", + "version": "20210720.11", "slug": "duplicacy", "description": "Duplicacy backup", "url": "https://git.johnhgaunt.com/jgaunt/hassio-addons/src/branch/master/duplicacy", diff --git a/duplicacy/run.sh b/duplicacy/run.sh index 9e5789e..43e74b0 100644 --- a/duplicacy/run.sh +++ b/duplicacy/run.sh @@ -12,15 +12,15 @@ SSH_PORT=$(bashio::config 'ssh_port') BACKUP_SERVER_PATH=$(bashio::config 'path') FILTERS=$(bashio::config 'filters') DAYS_TO_KEEP=$(bashio::config 'days_to_keep') -bashio::log.info "BACKUP_ID set to ${BACKUP_ID}." -bashio::log.info "PROTOCOL set to ${PROTOCOL}.)" -bashio::log.info "SSH_USERNAME set to ${SSH_USERNAME}." -bashio::log.info "SSH_PASSWORD set to ${SSH_PASSWORD}." -bashio::log.info "BACKUP_SERVER set to ${BACKUP_SERVER}." -bashio::log.info "SSH_PORT set to ${SSH_PORT}." -bashio::log.info "BACKUP_SERVER_PATH set to ${BACKUP_SERVER_PATH}." -bashio::log.info "FILTERS set to ${FILTERS}." -bashio::log.info "DAYS_TO_KEEP set to ${DAYS_TO_KEEP}." +bashio::log.info "BACKUP_ID set to ${BACKUP_ID}" +bashio::log.info "PROTOCOL set to ${PROTOCOL})" +bashio::log.info "SSH_USERNAME set to ${SSH_USERNAME}" +bashio::log.info "SSH_PASSWORD set to ${SSH_PASSWORD}" +bashio::log.info "BACKUP_SERVER set to ${BACKUP_SERVER}" +bashio::log.info "SSH_PORT set to ${SSH_PORT}" +bashio::log.info "BACKUP_SERVER_PATH set to ${BACKUP_SERVER_PATH}" +bashio::log.info "FILTERS set to ${FILTERS}" +bashio::log.info "DAYS_TO_KEEP set to ${DAYS_TO_KEEP}" # edit the /.duplicacy/preferences file bashio::log.info "Creating /.duplicacy/preferences file..." @@ -34,7 +34,9 @@ sed --in-place 's~~'${BACKUP_SERVER_PATH}'~' /.duplicacy/pre # create the filters file bashio::log.info "Creating /.duplicacy/filters file..." -echo ${FILTERS} | jq -r '.[]' >> /.duplicacy/filters +for filter in ${FILTERS}; do + echo ${FILTERS} >> /.duplicacy/filters +done # run the backup bashio::log.info "Running the duplicacy backup..."