added systemd service and timer for quota update
This commit is contained in:
parent
ea9346d25d
commit
95fde8e58f
4 changed files with 26 additions and 4 deletions
|
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Update the used quota
|
||||
|
||||
[Service]
|
||||
User=borg
|
||||
Group=borg
|
||||
WorkingDirectory=/opt/community_backup/community-backup/community_backup/
|
||||
ExecStart=/opt/community_backup/venv/bin/python manage.py update_used_quota
|
||||
PrivateTmp=true
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Update the used quota on a regular basis
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* *:0/5:00
|
||||
RandomizedDelaySec=120
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue