testing
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "duplicacy",
|
||||
"version": "20210720.11",
|
||||
"version": "20210720.12",
|
||||
"slug": "duplicacy",
|
||||
"description": "Duplicacy backup",
|
||||
"url": "https://git.johnhgaunt.com/jgaunt/hassio-addons/src/branch/master/duplicacy",
|
||||
|
||||
@@ -10,7 +10,7 @@ SSH_PASSWORD=$(bashio::config 'ssh_password')
|
||||
BACKUP_SERVER=$(bashio::config 'server')
|
||||
SSH_PORT=$(bashio::config 'ssh_port')
|
||||
BACKUP_SERVER_PATH=$(bashio::config 'path')
|
||||
FILTERS=$(bashio::config 'filters')
|
||||
FILTERS=$(bashio::config 'filters|split(" ")')
|
||||
DAYS_TO_KEEP=$(bashio::config 'days_to_keep')
|
||||
bashio::log.info "BACKUP_ID set to ${BACKUP_ID}"
|
||||
bashio::log.info "PROTOCOL set to ${PROTOCOL})"
|
||||
@@ -38,9 +38,11 @@ for filter in ${FILTERS}; do
|
||||
echo ${FILTERS} >> /.duplicacy/filters
|
||||
done
|
||||
|
||||
cat /.duplicacy/filters
|
||||
|
||||
# run the backup
|
||||
bashio::log.info "Running the duplicacy backup..."
|
||||
/duplicacy -verbose -log backup -stats
|
||||
#/duplicacy -verbose -log backup -stats
|
||||
|
||||
# run the clean up
|
||||
bashio::log.info "Cleaing up backups older than ${DAYS_TO_KEEP} day(s)..."
|
||||
|
||||
Reference in New Issue
Block a user