From: Silvio Rhatto Date: Sun, 14 Jul 2024 13:39:30 +0000 (-0300) Subject: Feat: adds repair option X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=43b5f363b995abb07942e9a9d98e7d5514abfbd1;p=borger.git Feat: adds repair option --- diff --git a/borger b/borger index 899b738..c2b8c0d 100755 --- a/borger +++ b/borger @@ -110,6 +110,12 @@ function borger_check { exit $? } +# Repair +function borger_repair { + borg check --repair + exit $? +} + # Info function borger_info { borg info @@ -377,6 +383,9 @@ elif [ "$OPTION" == "--list" ]; then elif [ "$OPTION" == "--check" ]; then borger_config borger_check +elif [ "$OPTION" == "--repair" ]; then + borger_config + borger_repair elif [ "$OPTION" == "--info" ]; then borger_config borger_info