• 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 Lost entire database

     
    • 0 Vote(s) - 0 Average

    Lost entire database

    prborg
    Offline

    Junior Member

    Posts: 1
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    Country:United States
    #1
    2024-05-31, 05:28 AM
    OK yesterday we had some rolling thunderstorms and i lost power for a split second. When the power came back the network share where all of my movies are did not come up automatically like it is supposed to, the underlying OS did not mount the drive properly (no data loss though). But for some reason Jellyfin was displaying that there were no movies anywhere (although I was able to connect to the network share and see that the files were there). I made sure to shutdown JF and make sure that the network share was accessible before starting JF again. I left JF run for several hours and still nothing. Eventually I just went to my libraries definition and toll JF to scan them again, which did the trick, I had to fix some of the images and metadata, but no big deal.

    My question is... How can I prevent this from happening in the future? I have shutdown the server where the movies are several times before (after upgrades/patches) and never had an issue. TIA for any ideas!
    gnattu
    Offline

    Team Member

    Posts: 342
    Threads: 0
    Joined: 2024 Feb
    Reputation: 17
    #2
    2024-05-31, 06:35 AM
    I'm very sorry to hear that. I had a similar experience where a thunderstorm caused a power outage, and my PSU died as a result. Luckily, my data was safe.

    After that, I bought a UPS to ensure I have time for a graceful shutdown if this ever happens again. If you live in an area where unexpected power outages are common, a UPS is definitely worth it.
    Mel_Gibson_Real
    Offline

    Junior Member

    Posts: 35
    Threads: 3
    Joined: 2023 Sep
    Reputation: 0
    #3
    2024-05-31, 11:42 AM
    I would just do daily backups, if anything bad happens you can just roll back to the previous day. If you use something like borgbackup it wont even take up much space to keep a weeks worth of backups just incase.
    pcm
    Offline

    Member

    Posts: 62
    Threads: 4
    Joined: 2024 May
    Reputation: 0
    Country:Uzbekistan
    #4
    2024-05-31, 02:52 PM
    Your library is stored in library.db SQLite db-file and all the library metadata (posters, thumbnails, people/artists, views etc) is stored in metadata directory. 

    So, to avoid losing your library, you can periodically make a backup-copy of library.db and metadata directory. 

    On ubuntu-linux the library.db file is at
    Quote:/var/lib/jellyfin/data/library.db
    and the metadata dir is
    Quote:/var/lib/jellyfin/metadata

    I have a shell-script that I run on a daily cron schedule. I can share it if you'd like it but it'll only work on a Linux or Mac or Windows with WSL2 enabled.
    MisterMcDuck
    Offline

    Junior Member

    Posts: 18
    Threads: 0
    Joined: 2024 May
    Reputation: 4
    Country:United States
    #5
    2024-05-31, 05:48 PM
    yeap, I do a duplicity backup every day myself and have used it to restore many times successfully (all due to my own fault, unlike OP).
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • 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