Add systemd units for backup-to-minio

This commit is contained in:
Jeffrey Serio 2024-07-01 00:19:39 -05:00
parent 71fd4cc4e9
commit f1ff90ec48
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,12 @@
[Unit]
Description=backup-to-minio
AssertFileIsExecutable=/usr/local/bin/backup-to-minio
[Service]
Type=oneshot
User=root
Group=root
ExecStart=/usr/local/bin/backup-to-minio
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,9 @@
[Unit]
Description=backup-to-minio
[Timer]
OnCalendar=weekly
Persistent=true
[Install]
WantedBy=timers.target