mirror of
https://codeberg.org/hyperreal/admin-scripts
synced 2024-11-01 16:03:06 +01:00
Add systemd units for backup-to-minio
This commit is contained in:
parent
71fd4cc4e9
commit
f1ff90ec48
12
systemd/system/backup-to-minio.service
Normal file
12
systemd/system/backup-to-minio.service
Normal 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
|
9
systemd/system/backup-to-minio.timer
Normal file
9
systemd/system/backup-to-minio.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=backup-to-minio
|
||||
|
||||
[Timer]
|
||||
OnCalendar=weekly
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
Reference in New Issue
Block a user