Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regulars backup/export #221

Open
altere987 opened this issue Feb 12, 2021 · 2 comments
Open

Regulars backup/export #221

altere987 opened this issue Feb 12, 2021 · 2 comments

Comments

@altere987
Copy link

I think I recall some discussion about re-writing the DB structure and regulars to where we didn't have to export the regulars list when clearing the song DB but I think that idea was tabled. Can we leave the export/import alone but have OpenKJ automatically backup the regulars into the users (I realize this will be a different location cross-platform) documents directories and retain the 5 most recent, when the databases are being cleared, updated, etc.? openkj_regulars-1.xml - openkj_regulars-5.xml or whatever naming structure.

I try and export mine manually each month but sometimes forget, and it just bit me when I clicked right through the warning.

@backstagekaraoke
Copy link
Collaborator

@ILightburn - Can you confirm if the recent Regular Singer and Singer history stuff addresses this?

@ILightburn
Copy link
Member

It doesn't yet, but I do already plan on revisiting the db update code in order to add handling for removed/missing songs, so I can add functionality to automatically dump the regular singers/singer history data along with the new play count and last played data from the song db when the db is cleared so it can then just be re-imported after the song library is re-imported into the db.

I'm hoping to make clearing the song db something that people rarely ever have to do by making it smarter about the aforementioned missing songs, renamed, songs, and such.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants