Compare commits

..

2 Commits
2.8.0 ... 2.8.2

Author SHA1 Message Date
Dave Conroy
2e0c0d9248 Release 2.8.2 - See CHANGELOG.md 2021-10-15 09:52:25 -07:00
Dave Conroy
c81d8e2713 Release 2.8.1 - See CHANGELOG.md 2021-09-01 07:43:01 -07:00
5 changed files with 22 additions and 14 deletions

View File

@@ -1,3 +1,15 @@
## 2.8.2 2021-10-15 <dave at tiredofit dot ca>
### Changed
- Change to using aws cli from Alpine repositories (fixes #81)
## 2.8.1 2021-09-01 <dave at tiredofit dot ca>
### Changed
- Modernize image with updated environment varialbes from upstream
## 2.8.0 2021-08-27 <dave at tiredofit dot ca>
### Added

View File

@@ -1,11 +1,11 @@
FROM tiredofit/alpine:3.14
FROM docker.io/tiredofit/alpine:3.14
### Set Environment Variables
ENV MSSQL_VERSION=17.5.2.1-1 \
ENABLE_CRON=FALSE \
ENABLE_SMTP=FALSE \
ENABLE_ZABBIX=TRUE \
ZABBIX_HOSTNAME=db-backup
CONTAINER_ENABLE_SCHEDULING=FALSE \
CONTAINER_ENABLE_MESSAGING=FALSE \
CONTAINER_ENABLE_MONITORING=TRUE \
CONTAINER_NAME=db-backup
### Dependencies
RUN set -ex && \
@@ -16,12 +16,12 @@ RUN set -ex && \
bzip2-dev \
git \
libarchive-dev \
py3-pip \
xz-dev \
&& \
\
apk add --no-cache -t .db-backup-run-deps \
bzip2 \
aws-cli \
bzip2 \
influxdb \
libarchive \
mariadb-client \
@@ -30,7 +30,6 @@ RUN set -ex && \
pigz \
postgresql \
postgresql-client \
python3 \
redis \
sqlite \
xz \
@@ -59,9 +58,7 @@ RUN set -ex && \
&& \
make && \
make install && \
pip3 install --upgrade pip && \
pip3 install awscli && \
\
\
### Cleanup
apk del .db-backup-build-deps && \
rm -rf /usr/src/* && \

View File

@@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2020 Dave Conroy
Copyright (c) 2021 Dave Conroy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@@ -1,4 +1,3 @@
#!/usr/bin/with-contenv bash
pkill bash

View File

@@ -497,7 +497,7 @@ print_debug "Backup routines Initialized on $(date)"
esac
### Zabbix
if var_true "$ENABLE_ZABBIX" ; then
if var_true "$CONTAINER_ENABLE_MONITORING}" ; then
print_notice "Sending Backup Statistics to Zabbix"
silent zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k dbbackup.size -o "$(stat -c%s "${DB_DUMP_TARGET}"/"${target}")"
silent zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -k dbbackup.datetime -o "$(date -r "${DB_DUMP_TARGET}"/"${target}" +'%s')"