bundlewrap/bundles/openhab/files/backup-pre-hook

6 lines
115 B
Bash

#!/bin/bash
find /var/lib/openhab/backups -type f -mtime +3 -delete
/usr/share/openhab/runtime/bin/backup --full