update filter file creation
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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>~'${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..."
|
||||
|
||||
Reference in New Issue
Block a user