Sample files for triggering borgmatic from a systemd timer.
This commit is contained in:
6
sample/systemd/borgmatic.service
Normal file
6
sample/systemd/borgmatic.service
Normal file
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=borgmatic backup
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/borgmatic
|
||||
8
sample/systemd/borgmatic.timer
Normal file
8
sample/systemd/borgmatic.timer
Normal file
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Run borgmatic backup
|
||||
|
||||
[Timer]
|
||||
OnCalendar=daily
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user