mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-22 05:33:53 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2e0c0d9248 | ||
|
|
c81d8e2713 |
12
CHANGELOG.md
12
CHANGELOG.md
@@ -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
|
||||
|
||||
17
Dockerfile
17
Dockerfile
@@ -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,8 +58,6 @@ RUN set -ex && \
|
||||
&& \
|
||||
make && \
|
||||
make install && \
|
||||
pip3 install --upgrade pip && \
|
||||
pip3 install awscli && \
|
||||
\
|
||||
### Cleanup
|
||||
apk del .db-backup-build-deps && \
|
||||
|
||||
2
LICENSE
2
LICENSE
@@ -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
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
pkill bash
|
||||
|
||||
|
||||
@@ -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')"
|
||||
|
||||
Reference in New Issue
Block a user