Explicitly mention cache dir; have a nice day

This commit is contained in:
2022-10-16 18:51:59 +03:00
parent ea3d2b76b5
commit f978c47939

View File

@@ -91,7 +91,7 @@ backup(){
if safety "$REPOSITORY"; then
#Run the backup
info "Backing up repository $REPOSITORY"
if restic -r b2:"$REPOSITORY" backup "$REPOSITORY_PATH" --limit-upload="$BWLIMIT" --limit-download="$BWLIMIT" | tee -a $LOG; then
if restic --cache-dir="$RESTIC_CACHE_DIR" -r b2:"$REPOSITORY" backup "$REPOSITORY_PATH" --limit-upload="$BWLIMIT" --limit-download="$BWLIMIT" | tee -a $LOG; then
ok "Path $REPOSITORY_PATH completed upload to $REPOSITORY."
check "$REPOSITORY"
else
@@ -175,5 +175,6 @@ elif [[ -n $CLEAN ]] || [[ $(date +%a) == "Friday" ]]; then
clean Pukeko-XYZ-Cloud
fi
#Wrap up this run's log and report nicely
echo "All done; have a nice day!"
end_logging
exit 0