From f7b291d7c7279c70d2b1fbeabbc658f8df589e3b Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Tue, 17 Jan 2023 09:23:35 -0500 Subject: [PATCH] chore: move files to mimic what they are in the system, under etc --- etc/env | 20 +++++++++++++++++++ .../systemd/system}/restic-backup.service | 0 .../systemd/system}/restic-backup.timer | 0 3 files changed, 20 insertions(+) create mode 100644 etc/env rename {systemd => etc/systemd/system}/restic-backup.service (100%) rename {systemd => etc/systemd/system}/restic-backup.timer (100%) diff --git a/etc/env b/etc/env new file mode 100644 index 0000000..b4df205 --- /dev/null +++ b/etc/env @@ -0,0 +1,20 @@ +# This is the file that will typically be /etc/restic/env (which is sourced from the script) + +# password for the repository +export RESTIC_PASSWORD= + +# repository location +export RESTIC_REPOSITORY= + +# restic cache dir +export RESTIC_CACHE_DIR= + +## matrix notifiction hook settings +# api key +export MATRIX_HOOK_KEY= +# room_id, ensure it is in '', because the ! will mess things up +export MATRIX_HOOK_ROOMID= + +# Specify these two if oom-killer is getting nasty with things +export TMPDIR= +export GOGC=1 diff --git a/systemd/restic-backup.service b/etc/systemd/system/restic-backup.service similarity index 100% rename from systemd/restic-backup.service rename to etc/systemd/system/restic-backup.service diff --git a/systemd/restic-backup.timer b/etc/systemd/system/restic-backup.timer similarity index 100% rename from systemd/restic-backup.timer rename to etc/systemd/system/restic-backup.timer