Add borgmatic timer
This commit is contained in:
parent
8ee456df74
commit
40e622cf26
3 changed files with 51 additions and 0 deletions
11
files/borgmatic.service
Normal file
11
files/borgmatic.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Backup with borgmatic
|
||||
|
||||
[Service]
|
||||
Nice=19
|
||||
IOSchedulingClass=idle
|
||||
KillSignal=SIGINT
|
||||
ExecStart=/usr/bin/borgmatic
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
10
files/borgmatic.timer
Normal file
10
files/borgmatic.timer
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Daily backup with borgmatic
|
||||
|
||||
[Timer]
|
||||
OnCalendar=daily
|
||||
RandomizedDelaySec=3600
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in a new issue