More > JRiver Media Center 31 for Windows
MC clients don't take backups on a schedule
BryanC:
--- Quote from: Matt on July 18, 2023, 11:59:36 am ---I could enable backup when connected to a library server. But restoring the files without restoring the connection would be kind of broken. Advice?
--- End quote ---
Are you saying that it's not possible to just continue backing up the default library on a schedule (with or without local library files) while connected as a client (i.e. without the default library loaded)? Perhaps on a schedule, just prior to library client connection MC could switch to default library, backup files/settings, then switch to remote library?
Otherwise a "settings-only" default library backup in client mode would work, maybe add a switch to the backup and disable the library database restore option on library restore of such a backup, otherwise do as mattkhan suggests and just use an empty library. Something (saved settings) is better than nothing, and users with local libraries can always switch and do it manually for a full backup.
mwillems:
--- Quote from: Matt on July 18, 2023, 12:28:59 pm ---Enabling restore would be messy too since that would overwrite the connected library.
If it somehow understood that it was settings only it might be neat, but all the library backup logic doesn't know about that today.
So in the menu there would be "Back Up Library" and "Back Up Settings". The scripted backup stuff would need to know which one to choose as well.
--- End quote ---
When restoring a library backup there is an option to restore the library and playlists or just the settings or both. Couldn't you effectively make backups work the same way? Maybe that's naive and "assembly isn't the reverse of disassembly," but it seems like a distinction that already exists in some of the code paths right?
--- Quote ---Are you saying that it's not possible to just continue backing up the default library on a schedule (with or without local library files) while connected as a client (i.e. without the default library loaded)? Perhaps on a schedule, just prior to library client connection MC could switch to default library, backup files/settings, then switch to remote library?
--- End quote ---
That's also not a bad idea; just take a quick backup on launch every so often.
leezer3:
--- Quote from: mattkhan on July 18, 2023, 12:34:33 pm ---I really don't see why this is hard. It knows it's a client so if it's a client only restore the settings. Clearly it has settings and those settings are stored somewhere that is client specific so it must be able to back them up and restore them without impacting the server. I suppose it's some detail of how MC is implemented that makes it hard?
--- End quote ---
Part of the issue IMHO is that MC isn't a true client / server setup.
The client keeps a local copy of the library and gets / sends changes periodically, but internally basically acts just like an independent copy.
Would I suspect require some pretty serious logic changes.
mattkhan:
it's already preserving its own settings independent of the library sync so it really can't be that hard to implement
JimH:
--- Quote from: mattkhan on July 20, 2023, 05:32:19 am ---it's already preserving its own settings independent of the library sync so it really can't be that hard to implement
--- End quote ---
Please don't tell us what's hard and what isn't.
Suppose your client is not always a client? And sometimes it's a server instead of or in addition to being a client?
Sometimes changes look simple and end up having lots of twists and turns.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version