From 75a5b59d8f1a0948ad43ff9821c892ec3232aecf Mon Sep 17 00:00:00 2001 From: Francesco Ciocchetti Date: Mon, 28 Oct 2019 09:50:55 +0100 Subject: [PATCH 1/2] Allow customizing config dir using RESTIC_RUNNER_CONFIG_DIR env variable --- restic-runner | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restic-runner b/restic-runner index 98f6ef0..effbdb7 100755 --- a/restic-runner +++ b/restic-runner @@ -20,7 +20,7 @@ # * Defaults -config_dir=~/.config/backup/restic +config_dir=${RESTIC_RUNNER_CONFIG_DIR:-$HOME/.config/backup/restic} # * Variables From 043d132fe3e60c40bd5762662f741596e606669b Mon Sep 17 00:00:00 2001 From: Francesco Ciocchetti Date: Mon, 28 Oct 2019 09:52:16 +0100 Subject: [PATCH 2/2] Update README with config dir environment variable --- README.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.org b/README.org index bd0379e..e0456da 100644 --- a/README.org +++ b/README.org @@ -17,7 +17,7 @@ :END: 1. Put the =restic-runner= script in your =PATH=. -2. Make the directory =~/.config/backup/restic= (or a path of your choosing after changing the =config_dir= default variable in the script). +2. Make the directory =~/.config/backup/restic= (or a path of your choosing after changing the =config_dir= default variable in the script or setting the RESTIC_RUNNER_CONFIG_DIR environment variable). *** MacOS