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

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