Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dalenewby committed Mar 10, 2020
1 parent f12484c commit e4ad440
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ RUN apk update \

ARG restic_ver=0.9.6

RUN wget https://github.com/restic/restic/releases/download/v${restic_ver}/restic_${restic_ver}_linux_amd64.bz2 \
-O /tmp/restic.bz2 \
RUN wget -O /tmp/restic.bz2 \
https://github.com/restic/restic/releases/download/v${restic_ver}/restic_${restic_ver}_linux_amd64.bz2 \
&& bunzip2 /tmp/restic.bz2 \
&& chmod +x /tmp/restic \
&& mv /tmp/restic /usr/local/bin/restic

COPY application/ /data/
WORKDIR /data

#dkn ENTRYPOINT ["./entrypoint.sh"]
CMD ["./entrypoint.sh"]
1 change: 1 addition & 0 deletions application/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
STATUS=0

echo "restic-backup-restore: backup: Started"
echo "restic-backup-restore: Backing up ${SOURCE_PATH}"

start=$(date +%s)
/usr/local/bin/restic backup --host ${RESTIC_HOST} --tag ${RESTIC_TAG} ${RESTIC_BACKUP_ARGS} ${SOURCE_PATH} || STATUS=$?
Expand Down
2 changes: 1 addition & 1 deletion application/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
STATUS=0

echo "restic-backup-restore: restore: Started"
echo "restic-backup-restore: Restoring ${RESTIC_RESTORE_ID}"
echo "restic-backup-restore: Restoring ${RESTIC_RESTORE_ID} to ${TARGET_PATH}"

start=$(date +%s)
/usr/local/bin/restic restore ${RESTIC_RESTORE_ID} --host ${RESTIC_HOST} --tag ${RESTIC_TAG} --target ${TARGET_PATH} || STATUS=$?
Expand Down

0 comments on commit e4ad440

Please sign in to comment.