Browse Source

v3.6.129

main v3.6.129
007revad 2 weeks ago
parent
commit
ceea30c7f0
  1. 3
      CHANGES.txt
  2. 18
      syno_hdd_db.sh

3
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 v3.6.128
- Bug fix for trying to backup "*_v7.db.version" instead of "*_v7.version". - Bug fix for trying to backup "*_v7.db.version" instead of "*_v7.version".

18
syno_hdd_db.sh

@ -29,7 +29,7 @@
# /var/packages/StorageManager/target/ui/storage_panel.js # /var/packages/StorageManager/target/ui/storage_panel.js
scriptver="v3.6.128" scriptver="v3.6.129"
script=Synology_HDD_db script=Synology_HDD_db
repo="007revad/Synology_HDD_db" repo="007revad/Synology_HDD_db"
scriptname=syno_hdd_db scriptname=syno_hdd_db
@ -1362,23 +1362,13 @@ fi
# Check databases and add our drives if needed # Check databases and add our drives if needed
# Host db files # 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 db1list < <(find "$dbpath" -maxdepth 1 -name "*_host*.db" | sort)
readarray -t db2list < <(find "$dbpath" -maxdepth 1 -name "*_host*.db.new" | sort) readarray -t db2list < <(find "$dbpath" -maxdepth 1 -name "*_host*.db.new" | sort)
# Expansion Unit db files # Expansion Unit db files
for i in "${!eunits[@]}"; do for i in "${eunits[@]}"; do
#eunitdb1list+=($(find "$dbpath" -maxdepth 1 -name "${eunits[i],,}*.db")) readarray -t -O "${#eunitdb1list[@]}" eunitdb1list < <(find "$dbpath" -maxdepth 1 -name "${i,,}*.db" | sort)
eunitdb1list+=("$(find "$dbpath" -maxdepth 1 -regextype posix-extended\ readarray -t -O "${#eunitdb2list[@]}" eunitdb2list < <(find "$dbpath" -maxdepth 1 -name "${i,,}*.db.new" | sort)
-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")")
done done
# M.2 Card db files # M.2 Card db files

Loading…
Cancel
Save