From ceea30c7f0b826f55b172af7c0c4faf2c5fe3337 Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Wed, 3 Jun 2026 16:32:54 +1000 Subject: [PATCH] v3.6.129 --- CHANGES.txt | 3 +++ syno_hdd_db.sh | 18 ++++-------------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index fafbcdf..3c5ae5c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +v3.6.129 +- Bug fix for backing up expansion unit db files (introduced in v3.6.126). + v3.6.128 - Bug fix for trying to backup "*_v7.db.version" instead of "*_v7.version". diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index f17f7ef..d0bf9a5 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -29,7 +29,7 @@ # /var/packages/StorageManager/target/ui/storage_panel.js -scriptver="v3.6.128" +scriptver="v3.6.129" script=Synology_HDD_db repo="007revad/Synology_HDD_db" scriptname=syno_hdd_db @@ -1362,23 +1362,13 @@ fi # Check databases and add our drives if needed # Host db files -#db1list=($(find "$dbpath" -maxdepth 1 -name "*_host*.db")) -#db2list=($(find "$dbpath" -maxdepth 1 -name "*_host*.db.new")) -#db1list=($(find "$dbpath" -maxdepth 1 -regextype posix-extended\ -# -iregex ".*_host(_v7)?.db")) -#db2list=($(find "$dbpath" -maxdepth 1 -regextype posix-extended\ -# -iregex ".*_host(_v7)?.db.new")) readarray -t db1list < <(find "$dbpath" -maxdepth 1 -name "*_host*.db" | sort) readarray -t db2list < <(find "$dbpath" -maxdepth 1 -name "*_host*.db.new" | sort) # Expansion Unit db files -for i in "${!eunits[@]}"; do - #eunitdb1list+=($(find "$dbpath" -maxdepth 1 -name "${eunits[i],,}*.db")) - eunitdb1list+=("$(find "$dbpath" -maxdepth 1 -regextype posix-extended\ - -iregex ".*${eunits[i],,}(_v7)?.db")") - #eunitdb2list+=($(find "$dbpath" -maxdepth 1 -name "${eunits[i],,}*.db.new")) - eunitdb2list+=("$(find "$dbpath" -maxdepth 1 -regextype posix-extended\ - -iregex ".*${eunits[i],,}(_v7)?.db.new")") +for i in "${eunits[@]}"; do + readarray -t -O "${#eunitdb1list[@]}" eunitdb1list < <(find "$dbpath" -maxdepth 1 -name "${i,,}*.db" | sort) + readarray -t -O "${#eunitdb2list[@]}" eunitdb2list < <(find "$dbpath" -maxdepth 1 -name "${i,,}*.db.new" | sort) done # M.2 Card db files