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