Add inventree backup config
This commit is contained in:
parent
57f5b22ab1
commit
c0cf553e34
4 changed files with 43 additions and 6 deletions
8
systemd/inventree-backup.service
Normal file
8
systemd/inventree-backup.service
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=InvenTree borg backup
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
Environment="INVENTREE_DEPLOYMENT_DIR=/home/inventree/inventree-deployment"
|
||||
ExecStart=${INVENTREE_DEPLOYMENT_DIR}/scripts/backup.sh
|
||||
|
9
systemd/inventree-backup.timer
Normal file
9
systemd/inventree-backup.timer
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Run daily InvenTree Backup
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 03:30:00
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
Add table
Add a link
Reference in a new issue