bundles/openhab: clean up old backups before doing new ones
This commit is contained in:
parent
60c31d2d11
commit
3c4700eb6d
3 changed files with 9 additions and 5 deletions
5
bundles/openhab/files/backup-pre-hook
Normal file
5
bundles/openhab/files/backup-pre-hook
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
find /var/lib/openhab/backups -type f -mtime +3 -delete
|
||||
|
||||
/usr/share/openhab/runtime/bin/backup --full
|
Loading…
Add table
Add a link
Reference in a new issue