sh.zio.backup: add support for local repos
parent
d9ef44e3f7
commit
85eb0cf874
|
@ -48,6 +48,12 @@ function invoke_restic() {
|
||||||
args="${@:2}"
|
args="${@:2}"
|
||||||
|
|
||||||
case "$(cat "$restic_repo_file")" in
|
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"*)
|
||||||
b2_account_id_file="$secrets_dir/b2-account-id"
|
b2_account_id_file="$secrets_dir/b2-account-id"
|
||||||
b2_account_key_file="$secrets_dir/b2-account-key"
|
b2_account_key_file="$secrets_dir/b2-account-key"
|
||||||
|
|
Loading…
Reference in New Issue