diff options
-rwxr-xr-x | borger | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |