diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-14 10:39:30 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-14 10:39:30 -0300 |
commit | 43b5f363b995abb07942e9a9d98e7d5514abfbd1 (patch) | |
tree | 25c143856d88fc9b764246abc0e9b46f9c42e904 | |
parent | 227c37abe647ba9d9eb45346a12794452f18c27a (diff) | |
download | borger-43b5f363b995abb07942e9a9d98e7d5514abfbd1.tar.gz borger-43b5f363b995abb07942e9a9d98e7d5514abfbd1.tar.bz2 |
Feat: adds repair option
-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 |