Add inventree backup config

This commit is contained in:
Philipp 2025-09-25 10:26:48 +02:00
parent 57f5b22ab1
commit c0cf553e34
Signed by: philipp
SSH key fingerprint: SHA256:ZWe7taUXeJb8xtjCZE7rZ3baSkVpBPjE4hdoKyJpfQE
4 changed files with 43 additions and 6 deletions

View 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

View file

@ -0,0 +1,9 @@
[Unit]
Description=Run daily InvenTree Backup
[Timer]
OnCalendar=*-*-* 03:30:00
Persistent=true
[Install]
WantedBy=timers.target