• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Moving libraries to a different disk

     
    • 0 Vote(s) - 0 Average

    Moving libraries to a different disk

    How to move libraries (on macOS)?
    jellyfin
    Offline

    Junior Member

    Posts: 49
    Threads: 9
    Joined: 2024 Nov
    Reputation: 0
    Country:Germany
    #8
    2024-11-23, 03:09 PM (This post was last modified: 2024-11-23, 03:10 PM by jellyfin. Edited 1 time in total.)
    I repeated the same with all 4 Sqlite databases I saw, there can be 2 more:

    Code:
    tja@mini:~$ cat ./jelly.sh
    #! /opt/local/bin/bash

    set -e
    set -u

    ####

    DIR="/Users/tja/Library/Application Support"

    cd "${DIR}"

    rm -rf jellyfin
    tar xf ~/Library_Application_Support_jellyfin.tar

    cd jellyfin/data

    for db in jellyfin.db library.db library.db-shm library.db-wal ; do
    cat << EOF | sqlite3 ${db}
    .output ${db}.sql
    .dump
    .exit
    EOF

    sed 's@T7_Touch1TB/MOVIES@XTRMQ/MEDIA/MOVIES@g;s@T7_Touch1TB/SERIES@XTRMQ/MEDIA/SERIES@g;s@T7_Touch1TB/INTERNET@XTRMQ/MEDIA/INTERNET@g;s@T7_Touch1TB/PRIVATE@XTRMQ/MEDIA/PRIVATE@g;s@T7_Touch1TB@XTRMQ@g' ${db}.sql > ${db}.new

    cat << EOF | sqlite3 ${db}2
    .read ${db}.new
    .exit
    EOF

    mv ${db}2 ${db}
    done

    exit 0

    That did not help either.

    The Libraries still point to the old location in the Dashboard and that cannot be changed in the Sqlite databases, it seems.
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)


    Messages In This Thread
    Moving libraries to a different disk - by jellyfin - 2024-11-22, 10:52 PM
    RE: Moving libraries to a different disk - by TheDreadPirate - 2024-11-22, 11:15 PM
    RE: Moving libraries to a different disk - by jellyfin - 2024-11-23, 12:12 AM
    RE: Moving libraries to a different disk - by TheDreadPirate - 2024-11-23, 12:53 AM
    RE: Moving libraries to a different disk - by jellyfin - 2024-11-23, 02:12 PM
    RE: Moving libraries to a different disk - by jellyfin - 2024-11-23, 02:40 PM
    RE: Moving libraries to a different disk - by jellyfin - 2024-11-23, 02:54 PM
    RE: Moving libraries to a different disk - by jellyfin - 2024-11-23, 03:09 PM
    RE: Moving libraries to a different disk - by jellyfin - 2024-11-23, 03:33 PM
    RE: Moving libraries to a different disk - by jellyfin - 2024-11-23, 03:52 PM
    RE: Moving libraries to a different disk - by TheDreadPirate - 2024-11-23, 04:26 PM
    RE: Moving libraries to a different disk - by jellyfin - 2024-11-23, 04:46 PM
    RE: Moving libraries to a different disk - by jellyfin - 2024-11-23, 07:15 PM
    RE: Moving libraries to a different disk - by jellyfin - 2024-11-24, 12:39 AM
    RE: Moving libraries to a different disk - by jellyfin - 2024-11-23, 04:26 PM
    RE: Moving libraries to a different disk - by TheDreadPirate - 2024-11-24, 01:36 AM
    RE: Moving libraries to a different disk - by jellyfin - 2024-11-24, 11:08 AM
    RE: Moving libraries to a different disk - by jellyfin - 2024-11-24, 01:06 PM
    RE: Moving libraries to a different disk - by jellyfin - 2024-11-24, 02:43 PM
    RE: Moving libraries to a different disk - by huevosolo - Yesterday, 05:32 AM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode