diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index 778e7bc..301bcc0 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -477,6 +477,10 @@ if [[ $restore == "yes" ]]; then fi done + # Delete any .dbr and .db.newr files left by previous script versions + for f in "${dbpath}"*dbr; do rm "$f"; done + for f in "${dbpath}"*db.newr; do rm "$f"; done + # Update .db files from Synology syno_disk_db_update --update