Allow to pass backup path as argument
This commit is contained in:
@@ -16,5 +16,6 @@ RUN apk add --update --no-cache ca-certificates fuse openssh-client tzdata jq cu
|
|||||||
COPY --from=builder /go/src/github.com/restic/restic/restic /usr/bin
|
COPY --from=builder /go/src/github.com/restic/restic/restic /usr/bin
|
||||||
|
|
||||||
ADD backup.sh /usr/local/bin/backup.sh
|
ADD backup.sh /usr/local/bin/backup.sh
|
||||||
|
RUN chmod +x /usr/local/bin/backup.sh
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/restic"]
|
ENTRYPOINT ["/usr/bin/restic"]
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
BACKUP_PATH=${BACKUP_PATH:-$1}
|
||||||
INSTANCE="$(echo ${INSTANCE:-${TAG}} | envsubst)"
|
INSTANCE="$(echo ${INSTANCE:-${TAG}} | envsubst)"
|
||||||
export RESTIC_REPOSITORY="$(echo ${RESTIC_REPOSITORY} | envsubst)"
|
export RESTIC_REPOSITORY="$(echo ${RESTIC_REPOSITORY} | envsubst)"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user