Update to restic 0.16.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
FROM golang:1.19-alpine AS builder
|
FROM golang:1.19-alpine AS builder
|
||||||
|
|
||||||
ARG RESTIC_VERSION=0.15.1
|
ARG RESTIC_VERSION=0.16.0
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
RUN git clone --depth 1 --branch v${RESTIC_VERSION} https://github.com/restic/restic.git /go/src/github.com/restic/restic
|
RUN git clone --depth 1 --branch v${RESTIC_VERSION} https://github.com/restic/restic.git /go/src/github.com/restic/restic
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ ts_start=$(date +%s)
|
|||||||
|
|
||||||
log_info "Initializing restic"
|
log_info "Initializing restic"
|
||||||
ts=$(date +%s)
|
ts=$(date +%s)
|
||||||
restic cat config >/dev/null || {
|
restic cat config --no-lock >/dev/null || {
|
||||||
log_warn "Repository ${RESTIC_REPOSITORY} does not exist, creating";
|
log_warn "Repository ${RESTIC_REPOSITORY} does not exist, creating";
|
||||||
restic init;
|
restic init;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user