feat: automate production maintenance
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=RF4 Spotter backup and retention maintenance
|
||||
After=docker.service network-online.target
|
||||
Requires=docker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=rf4spotter
|
||||
WorkingDirectory=/opt/rf4-spotter
|
||||
ExecStart=/opt/rf4-spotter/deploy/maintenance.sh
|
||||
|
||||
# Backups can take longer on a growing database and object store.
|
||||
TimeoutStartSec=2h
|
||||
Reference in New Issue
Block a user