chore: move files to mimic what they are in the system, under etc
This commit is contained in:
parent
00f7736641
commit
f7b291d7c7
3 changed files with 20 additions and 0 deletions
20
etc/env
Normal file
20
etc/env
Normal 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
|
11
etc/systemd/system/restic-backup.service
Normal file
11
etc/systemd/system/restic-backup.service
Normal 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
|
10
etc/systemd/system/restic-backup.timer
Normal file
10
etc/systemd/system/restic-backup.timer
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue