Sample files for triggering borgmatic from a systemd timer.

This commit is contained in:
Dan Helfman 2016-07-04 09:19:34 -07:00
commit 49c4f483fd
3 changed files with 40 additions and 4 deletions

3
sample/cron/borgmatic Normal file
View 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

View file

@ -0,0 +1,6 @@
[Unit]
Description=borgmatic backup
[Service]
Type=oneshot
ExecStart=/usr/local/bin/borgmatic

View file

@ -0,0 +1,8 @@
[Unit]
Description=Run borgmatic backup
[Timer]
OnCalendar=daily
[Install]
WantedBy=timers.target