BREAKING CHANGE: remove zulip
This commit is contained in:
parent
6d4647f77d
commit
d438a186bd
2 changed files with 5 additions and 10 deletions
|
@ -11,7 +11,7 @@ ENV SSH_SERVER ""
|
|||
ENV SSH_USER root
|
||||
ENV SSH_PORT 22
|
||||
|
||||
RUN apk add --no-cache borgbackup openssh-client zulip-client
|
||||
RUN apk add --no-cache borgbackup openssh-client
|
||||
|
||||
COPY ./monit.conf /etc/monit.d/borg.conf
|
||||
COPY ./backup.sh /usr/local/bin/backup
|
||||
|
|
13
backup.sh
13
backup.sh
|
@ -35,13 +35,8 @@ for signal in TERM QUIT HUP EXIT INT KILL; do
|
|||
done
|
||||
|
||||
# It'll fail the second time
|
||||
borg init --encryption=repokey "${SSH_ALIAS}:${DEST}" 2>&1 | tee /tmp/backup.log
|
||||
borg create -v --stats "${SSH_ALIAS}:${DEST}::${DATE}" "${ORIG}" 2>&1 | tee -a /tmp/backup.log
|
||||
borg prune -v --stats --keep-daily ${KEEP} "${SSH_ALIAS}:${DEST}" 2>&1 | tee -a /tmp/backup.log
|
||||
borg list "${SSH_ALIAS}:${DEST}" 2>&1 | tee -a /tmp/backup.log
|
||||
borg init --encryption=repokey "${SSH_ALIAS}:${DEST}"
|
||||
borg create -v --stats "${SSH_ALIAS}:${DEST}::${DATE}" "${ORIG}"
|
||||
borg prune -v --stats --keep-daily ${KEEP} "${SSH_ALIAS}:${DEST}"
|
||||
borg list "${SSH_ALIAS}:${DEST}"
|
||||
|
||||
if test -n "${ZULIP_KEY}"; then
|
||||
cat /tmp/backup.log | zulip-client -u "${ZULIP_URL}" -b "${ZULIP_BOT}" -s "${ZULIP_STREAM}" -t "${ZULIP_TOPIC}"
|
||||
fi
|
||||
|
||||
exit $?
|
||||
|
|
Loading…
Reference in a new issue