vrcx-team / VRCX

Friendship management tool for VRChat
MIT License
1k stars 188 forks source link

[Feature Request] Add auto backup for internal database #826

Open Preta-Crowz opened 4 months ago

Preta-Crowz commented 4 months ago

Explain in detail what your suggested feature would be used for. Add auto-backup & restore like doing to VRC Registry.

Describe how it would look if it requires a UI. Using same/simmilar UI to VRC Registry Backup feature will enough.

Explain why people would want to use it. I lost all my old datas, favorated worlds that is not public anymore right after update. Settings and session data also lost. I need to put youtube API key again. No backup or pre-update data can not be found. This feature will prevent that happening on future.

BenjaminZehowlt commented 4 months ago

I'm not sure how @Natsumi-sama would feel about implementing this, but the VRCX database can easily get into the multiple-gigabyte range. Adding automatic backup will cause VRCX to use way more storage in those cases. I'm not opposed to adding this just the storage usage is a concern.

BenjaminZehowlt commented 4 months ago

Post note,

If you upgraded from a fairly old version a database resiliency feature was enabled (WAL), plus a database cleaning is run along with that. So if you closed it during that yeah that'll explain your database corruption.

Natsumi-sama commented 4 months ago

It's a long time requested feature that would be nice to have but yea getting around those storage concerns is an issue, maybe having a toggle to disable it for those with very small C:\ drives would be good enough.

Preta-Crowz commented 4 months ago

How about backup only few datas like internal favorated world/avatar and settings? They included on DB and they are main reason for requesting it

UwUo-oUwU commented 4 months ago

I'm for this being implemented. For ideas if you decide to do it, maybe have it off-by-default & prompt the option to enable it before updating after implementing it? It could even show/warn about the estimated space required if they decide enable the feature.