From a57701ea3cc03b1e59f628f742dc96ddde2b9f1f Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Thu, 3 Sep 2020 17:02:47 +0300 Subject: [PATCH] Updated Restic config layout --- static/restic.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/restic.nix b/static/restic.nix index e150436..d48d720 100644 --- a/static/restic.nix +++ b/static/restic.nix @@ -11,10 +11,11 @@ serviceConfig = { Type = "oneshot"; User = "restic"; + Environment = [ "AWS_ACCESS_KEY_ID=AKIAJOVDNQ6FERMIDHKA" "AWS_SECRET_ACCESS_KEY=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" ]; }; script = '' - restic -r s3:s3.amazonaws.com/ backup /var/vmail /var/vmail - ''; + restic -r s3:s3.amazonaws.com/haep9c-backup backup /var/vmail /var/vmail + '' }; }; users.users.restic = {