Explicitly mention cache dir; have a nice day
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user