diff --git a/Dockerfile b/Dockerfile index 919d1f6..79484e3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ 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 git clone --depth 1 --branch v${RESTIC_VERSION} https://github.com/restic/restic.git /go/src/github.com/restic/restic diff --git a/backup.sh b/backup.sh index c3dd4f7..79181b3 100755 --- a/backup.sh +++ b/backup.sh @@ -21,7 +21,7 @@ ts_start=$(date +%s) log_info "Initializing restic" ts=$(date +%s) -restic cat config >/dev/null || { +restic cat config --no-lock >/dev/null || { log_warn "Repository ${RESTIC_REPOSITORY} does not exist, creating"; restic init; }