mtkennerly / ludusavi-playnite

Playnite plugin for save backups via Ludusavi
MIT License
141 stars 9 forks source link

Suggestion to back up #5

Closed Lacro59 closed 3 years ago

Lacro59 commented 3 years ago

It's possible to add a option for back up and restore playnite database?

mtkennerly commented 3 years ago

Hmm, this would be good, but I'll need to think about how to implement it.

Technically, it's possible already if you create a custom game in Ludusavi, enter the database path, and then choose "back up all" in the plugin. But it would be nice if you didn't have to enter the path manually, and it should probably be handled independently so that "restore all games" and "restore Playnite database" are separate.

mtkennerly commented 3 years ago

For reference, Playnite has an open ticket for this, but no recent activity on it: https://github.com/JosefNemec/Playnite/issues/912

In terms of overall usability, it might be better to wait for that (or maybe even try to work on it myself) rather than putting the functionality into the plugin. That would take longer, but the end result would probably be better.

mtkennerly commented 3 years ago

After thinking about this some more, I think it's probably not a good fit for this specific plugin. I think the best way forward would either be enhancing Playnite itself (in the ticket linked above) or making a dedicated plugin. The goal of this plugin is really just to invoke Ludusavi and let Ludusavi do the hard work, but the plugin would need to be more intelligent in order to back up Playnite's database reliably (e.g., figure out the location based on whether Playnite is installed or portable) and either relay that information to Ludusavi or implement its own backup/restore functionality.

In the meantime, like I mentioned, it is at least possible (although not quite as convenient) to do this by making a Playnite entry in Ludusavi as a custom game.