2
0
Fork 0

sh.zio.backup: add support for local repos

main
Ducky 2023-08-22 01:46:05 +01:00
parent d9ef44e3f7
commit 85eb0cf874
1 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,12 @@ function invoke_restic() {
args="${@:2}"
case "$(cat "$restic_repo_file")" in
"/"*)
if [[ ! -d "$(cat "$restic_repo_file")" ]];
say warning "'$(cat "$restic_repo_file")' does not exist. Creating directory..."
mkdir -p "$(cat "$restic_repo_file")"
fi
;;
"b2"*)
b2_account_id_file="$secrets_dir/b2-account-id"
b2_account_key_file="$secrets_dir/b2-account-key"