[Bug]: Backup does not restore user stats #2998

Closed
opened 2026-04-25 00:12:53 +02:00 by adam · 1 comment
Owner

Originally created by @Entity7 on GitHub (Sep 12, 2025).

What happened?

Made a backup of my audiobooks and a backup of audiobookshelf using the inbuilt backup feature.
Migrated to a new server restored the backup and pointed it towards the new audiobook folder and it correctly detected all the books.
Everything seems to have worked besides the fact that the books I was listening to and the user stats no longer exist but DO exist in listening history.

Image Image

What did you expect to happen?

The backup to restore my listening sessions AND my hard earned stats

Steps to reproduce the issue

  1. Backup of audiobook folder and audiobookshelf backup file
  2. Install audiobookshelf on the new machine, restore you backup, fix the directories for the library and backups to the new ones
  3. Everything works besides my current listening sessions AND more importantly the stats

Audiobookshelf version

2.29.0

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Firefox

Logs


Additional Notes

I don't mind having to put in my stats manually as I can just use the listening sessions to calculate the exact number myself, I just want them to be an accurate representation.
For the listening sessions I don't care too much but it would be nice to recover exactly where I was in each book.

Originally created by @Entity7 on GitHub (Sep 12, 2025). ### What happened? Made a backup of my audiobooks and a backup of audiobookshelf using the inbuilt backup feature. Migrated to a new server restored the backup and pointed it towards the new audiobook folder and it correctly detected all the books. Everything seems to have worked besides the fact that the books I was listening to and the user stats no longer exist but DO exist in listening history. <img width="1328" height="852" alt="Image" src="https://github.com/user-attachments/assets/93121f43-5e33-4f54-a650-6ade0b1cac87" /> <img width="1048" height="869" alt="Image" src="https://github.com/user-attachments/assets/6c9131a5-ede5-4a18-996d-3f7ea7d83aa0" /> ### What did you expect to happen? The backup to restore my listening sessions AND my hard earned stats ### Steps to reproduce the issue 1. Backup of audiobook folder and audiobookshelf backup file 2. Install audiobookshelf on the new machine, restore you backup, fix the directories for the library and backups to the new ones 3. Everything works besides my current listening sessions AND more importantly the stats ### Audiobookshelf version 2.29.0 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? Firefox ### Logs ```shell ``` ### Additional Notes I don't mind having to put in my stats manually as I can just use the listening sessions to calculate the exact number myself, I just want them to be an accurate representation. For the listening sessions I don't care too much but it would be nice to recover exactly where I was in each book.
adam added the bug label 2026-04-25 00:12:53 +02:00
adam closed this issue 2026-04-25 00:12:54 +02:00
Author
Owner

@Entity7 commented on GitHub (Sep 12, 2025):

Uh so it just automagically fixed my stats still have to find my spot manually in each book but for anyone having this problem, wait around and maybe restart the docker container after setting everything up?

@Entity7 commented on GitHub (Sep 12, 2025): Uh so it just automagically fixed my stats still have to find my spot manually in each book but for anyone having this problem, wait around and maybe restart the docker container after setting everything up?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2998