chore: move files to mimic what they are in the system, under etc

This commit is contained in:
Alex Kelly 2023-01-17 09:23:35 -05:00
parent 00f7736641
commit f7b291d7c7
3 changed files with 20 additions and 0 deletions

20
etc/env Normal file
View file

@ -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

View file

@ -0,0 +1,11 @@
[Unit]
Description=Initiates restic backup script
Wants=restic_backup.timer
[Service]
Type=oneshot
ExecStart=/etc/restic/backup.sh
SyslogIdentifier=restic_backup
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,10 @@
[Unit]
Description=Executes the restic backup script
Requires=restic-backup.service
[Timer]
Unit=restic-backup.service
OnCalendar=*-*-* 22:40:00
[Install]
WantedBy=timers.target