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
- 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
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

Loading…
Cancel
Save