infrastructure/roles/backup/templates/backup.service.j2

12 lines
238 B
Text
Raw Normal View History

2024-09-26 22:02:36 +00:00
[Unit]
2024-10-05 23:59:46 +00:00
Description=Run the backup script
2024-09-26 22:02:36 +00:00
StartLimitIntervalSec=7200
StartLimitBurst=5
[Service]
Type=oneshot
2024-10-05 23:59:46 +00:00
ExecStart={{ (service_path, 'backup.sh') | path_join }}
2024-09-26 22:02:36 +00:00
WorkingDirectory={{ service_path }}
Restart=on-failure
RestartSec=15min