Sample files for triggering borgmatic from a systemd timer.
This commit is contained in:
parent
4447956da7
commit
49c4f483fd
3 changed files with 40 additions and 4 deletions
3
sample/cron/borgmatic
Normal file
3
sample/cron/borgmatic
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# You can drop this file into /etc/cron.d/ to run borgmatic nightly.
|
||||
|
||||
0 3 * * * root PATH=$PATH:/usr/local/bin /usr/local/bin/borgmatic
|
||||
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
|
||||
Loading…
Reference in a new issue