From 0086878d5744858875b29be5da63165fe62adaa6 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 28 Jun 2024 20:15:14 -0500 Subject: [PATCH] added more .env stuff --- README.md | 2 +- src/restic/forget.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 377ed09..5f281c7 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Purpose: ## Environment Variables -Recommended to put these in the relevant `~/.bashrc` file +Put these in a `.env` file in the directory that the backup will be run from. | Env Variable | Description | |---------------------|--------------------------------------------------------------------------------------------| diff --git a/src/restic/forget.py b/src/restic/forget.py index b1437b4..6f36a26 100644 --- a/src/restic/forget.py +++ b/src/restic/forget.py @@ -95,4 +95,7 @@ def main(loki_url: str, dry_run: bool, **kwargs): if __name__ == '__main__': + from dotenv import load_dotenv + + load_dotenv() main()