mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-03 06:29:42 +00:00
Prepare for migration
This commit is contained in:
parent
dedfdba39b
commit
d442b46d7e
11 changed files with 451 additions and 0 deletions
13
scripts/dump_library_items.sh
Executable file
13
scripts/dump_library_items.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
# Dump libraryItems table focusing on paths
|
||||
|
||||
DB_PATH="/mnt/docker/work/books/audiobookshelf/config/absdatabase.sqlite"
|
||||
|
||||
echo "=== libraryItems (Paths) ==="
|
||||
echo "ID | PATH | REL_PATH"
|
||||
echo "---|------|---------"
|
||||
sqlite3 -header -column "$DB_PATH" "SELECT id, path, relPath FROM libraryItems LIMIT 100;"
|
||||
|
||||
echo ""
|
||||
echo "=== Unique Path Prefixes ==="
|
||||
sqlite3 "$DB_PATH" "SELECT DISTINCT SUBSTR(path, 1, INSTR(path || '/', '/') - 1) FROM libraryItems;" | sort -u
|
||||
Loading…
Add table
Add a link
Reference in a new issue