mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 13:23:12 +01:00
Merge pull request #18 from alwynpan/1.16.1
Fix couchdb backup endpoint; Set ENABLE_ZABBIX to FALSE by default
This commit is contained in:
@@ -8,7 +8,8 @@ COPY --from=mongo-packages / /usr/src/apk
|
||||
|
||||
### Set Environment Variables
|
||||
ENV ENABLE_CRON=FALSE \
|
||||
ENABLE_SMTP=FALSE
|
||||
ENABLE_SMTP=FALSE \
|
||||
ENABLE_ZABBIX=FALSE
|
||||
|
||||
### Dependencies
|
||||
RUN set -ex && \
|
||||
|
||||
@@ -97,7 +97,7 @@ fi
|
||||
### Functions
|
||||
function backup_couch() {
|
||||
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
|
||||
compression
|
||||
move_backup
|
||||
|
||||
Reference in New Issue
Block a user