[Enhancement]: Export/import stats #2345

Closed
opened 2026-04-25 00:06:19 +02:00 by adam · 7 comments
Owner

Originally created by @CyberB1aze on GitHub (Nov 5, 2024).

Type of Enhancement

Server Backend

Describe the Feature/Enhancement

Be able to export/import listening stats for users.

Why would this be helpful?

  • If needed to create a new user for someone on same server.
  • deploying fresh server and syncing listening stats (probably wouldn't work well).
  • having read stats on different ABS servers.

Future Implementation (Screenshot)

just a simple import and export button your listening stats page.

Audiobookshelf Server Version

2.16.2

Current Implementation (Screenshot)

vivaldi_G34IBQEloN

Originally created by @CyberB1aze on GitHub (Nov 5, 2024). ### Type of Enhancement Server Backend ### Describe the Feature/Enhancement Be able to export/import listening stats for users. ### Why would this be helpful? - If needed to create a new user for someone on same server. - deploying fresh server and syncing listening stats (probably wouldn't work well). - having read stats on different ABS servers. ### Future Implementation (Screenshot) just a simple import and export button your listening stats page. ### Audiobookshelf Server Version 2.16.2 ### Current Implementation (Screenshot) ![vivaldi_G34IBQEloN](https://github.com/user-attachments/assets/9c39b048-9a10-4290-90d8-14e75a9cc409)
adam added the enhancement label 2026-04-25 00:06:19 +02:00
adam closed this issue 2026-04-25 00:06:19 +02:00
Author
Owner

@nichwall commented on GitHub (Nov 5, 2024):

Sounds like you just want to be able to restore from a backup, which is already supported.

Listening stats are linked to the library item ID, which is randomly generated when a book/podcast episode is added to the library.

https://www.audiobookshelf.org/guides/migration-and-backups#restoring-from-backup

@nichwall commented on GitHub (Nov 5, 2024): Sounds like you just want to be able to restore from a backup, which is already supported. Listening stats are linked to the library item ID, which is randomly generated when a book/podcast episode is added to the library. https://www.audiobookshelf.org/guides/migration-and-backups#restoring-from-backup
Author
Owner

@advplyr commented on GitHub (Nov 10, 2024):

As @nichwall pointed out this isn't possible since library item IDs are random

@advplyr commented on GitHub (Nov 10, 2024): As @nichwall pointed out this isn't possible since library item IDs are random
Author
Owner

@CyberB1aze commented on GitHub (Dec 2, 2024):

what about copying the listening stats from 1 user to another one?

@CyberB1aze commented on GitHub (Dec 2, 2024): what about copying the listening stats from 1 user to another one?
Author
Owner

@nichwall commented on GitHub (Dec 2, 2024):

Why are you wanting to copy listening stats from one user to another?

@nichwall commented on GitHub (Dec 2, 2024): Why are you wanting to copy listening stats from one user to another?
Author
Owner

@CyberB1aze commented on GitHub (Dec 5, 2024):

Why are you wanting to copy listening stats from one user to another?

Mostly so I can copy stats from root user (which I have been using exclusively on my own server until recently) to a non root user (for SSO login functionality). SSO for root user is not possible at the moment and for good reason (still be able to access server and settings if sso link is broken). maybe the functionality to be able to create a new root user and change the root user to a non-root user? not sure how feasible something like that would be.

@CyberB1aze commented on GitHub (Dec 5, 2024): > Why are you wanting to copy listening stats from one user to another? Mostly so I can copy stats from root user (which I have been using exclusively on my own server until recently) to a non root user (for SSO login functionality). SSO for root user is not possible at the moment and for good reason (still be able to access server and settings if sso link is broken). maybe the functionality to be able to create a new root user and change the root user to a non-root user? not sure how feasible something like that would be.
Author
Owner

@advplyr commented on GitHub (Dec 5, 2024):

SSO for root user is possible. You use the match via username or email feature and make sure it matches.

@advplyr commented on GitHub (Dec 5, 2024): SSO for root user is possible. You use the match via username or email feature and make sure it matches.
Author
Owner

@CyberB1aze commented on GitHub (Dec 5, 2024):

SSO for root user is possible. You use the match via username or email feature and make sure it matches.

I see, in my personal set-up I use this oidc identity provider (https://github.com/stonith404/pocket-id) and when using match by email in ABS it always gives unauthorized. would this be a discrepancy in what the email id field is?

@CyberB1aze commented on GitHub (Dec 5, 2024): > SSO for root user is possible. You use the match via username or email feature and make sure it matches. I see, in my personal set-up I use this oidc identity provider (https://github.com/stonith404/pocket-id) and when using match by email in ABS it always gives unauthorized. would this be a discrepancy in what the email id field is?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2345