Explicitly mention cache dir; have a nice day
This commit is contained in:
@@ -91,7 +91,7 @@ backup(){
|
|||||||
if safety "$REPOSITORY"; then
|
if safety "$REPOSITORY"; then
|
||||||
#Run the backup
|
#Run the backup
|
||||||
info "Backing up repository $REPOSITORY"
|
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."
|
ok "Path $REPOSITORY_PATH completed upload to $REPOSITORY."
|
||||||
check "$REPOSITORY"
|
check "$REPOSITORY"
|
||||||
else
|
else
|
||||||
@@ -175,5 +175,6 @@ elif [[ -n $CLEAN ]] || [[ $(date +%a) == "Friday" ]]; then
|
|||||||
clean Pukeko-XYZ-Cloud
|
clean Pukeko-XYZ-Cloud
|
||||||
fi
|
fi
|
||||||
#Wrap up this run's log and report nicely
|
#Wrap up this run's log and report nicely
|
||||||
|
echo "All done; have a nice day!"
|
||||||
end_logging
|
end_logging
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user