Skip to content

Commit

Permalink
Do not try to set additional_free_space on a remote repo
Browse files Browse the repository at this point in the history
This fixes: borg config: error: argument REPOSITORY: "::": Repository must be local

Signed-off-by: Tim Diels <tim@diels.me>
  • Loading branch information
timdiels authored and szaimen committed Sep 5, 2024
1 parent 2739760 commit 324b63e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Containers/borgbackup/backupscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,11 @@ if [ "$BORG_MODE" = backup ]; then
fi
exit 1
fi
borg config :: additional_free_space 2G

if [ -z "$BORG_REMOTE_REPO" ]; then
# borg config only works for local repos; it's up to the remote to ensure the disk isn't full
borg config :: additional_free_space 2G

# Fix too large Borg cache
# https://borgbackup.readthedocs.io/en/stable/faq.html#the-borg-cache-eats-way-too-much-disk-space-what-can-i-do
BORG_ID="$(borg config :: id)"
Expand Down

0 comments on commit 324b63e

Please sign in to comment.