mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 21:33:28 +01:00
Fix couchdb backup endpoint; Set ENABLE_ZABBIX to FALSE by default
This commit is contained in:
committed by
Alwyn Pan
parent
aa1c8b3591
commit
36e4d9a2a2
@@ -8,7 +8,8 @@ COPY --from=mongo-packages / /usr/src/apk
|
|||||||
|
|
||||||
### Set Environment Variables
|
### Set Environment Variables
|
||||||
ENV ENABLE_CRON=FALSE \
|
ENV ENABLE_CRON=FALSE \
|
||||||
ENABLE_SMTP=FALSE
|
ENABLE_SMTP=FALSE \
|
||||||
|
ENABLE_ZABBIX=FALSE
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
RUN set -ex && \
|
RUN set -ex && \
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ fi
|
|||||||
### Functions
|
### Functions
|
||||||
function backup_couch() {
|
function backup_couch() {
|
||||||
TARGET=couch_${DBNAME}_${DBHOST}_${now}.txt
|
TARGET=couch_${DBNAME}_${DBHOST}_${now}.txt
|
||||||
curl -X GET http://${DBHOST}:${DBPORT}/${DBNAME}/ all docs? include docs=true >${TMPDIR}/${TARGET}
|
curl -X GET http://${DBHOST}:${DBPORT}/${DBNAME}/_all_docs?include_docs=true >${TMPDIR}/${TARGET}
|
||||||
generate_md5
|
generate_md5
|
||||||
compression
|
compression
|
||||||
move_backup
|
move_backup
|
||||||
|
|||||||
Reference in New Issue
Block a user