2020-06-28 22:00:36 +00:00
|
|
|
# systemctl enable /path/to/this/unit-file
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Run tarsnap.service every six hours
|
|
|
|
Requires=tarsnap.service
|
2023-09-12 06:49:29 +00:00
|
|
|
After=network-online.target
|
2020-06-28 22:00:36 +00:00
|
|
|
|
|
|
|
[Timer]
|
|
|
|
Unit=tarsnap.service
|
|
|
|
OnCalendar=*-*-* 00:00:00
|
|
|
|
OnCalendar=*-*-* 06:00:00
|
|
|
|
OnCalendar=*-*-* 12:00:00
|
|
|
|
OnCalendar=*-*-* 18:00:00
|
|
|
|
RandomizedDelaySec=3m
|
|
|
|
AccuracySec=1s
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=timers.target
|