Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
mherger wrote: > > I don't think restoring individual prefs would really help here. Plus > LMS knows triggers on prefs changes which could really hurt here. Eg. > many prefs changes would trigger a rescan. Or LMS only has access to > player prefs for players which currently are connected. There are a lot > > of different limitations which make importing prefs rather than a prefs > > file complex. > Wouldn't treat it as a settings `replay`. More like a soft reboot with the settings being read from the backup medium rather than the prefs file. Full rescan might in fact not be a bad idea at all as part of such a restore as this kind of implies some type of emergency activity taking place anyway. gordonb3's Profile: http://forums.slimdevices.com/member.php?userid=71050 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
mherger wrote: > > 1. In my old version of LMS running on an rPi with PiCorePlayer I copy > > (download) the old "prefs" and "cache" folders using WinSCP to my PC.* > > Why would you copy the cache folder? > > -- > > Michael As you know way more than me, I guess this is not needed. (I just copied the entire contents of the "squeezeboxserver" or "slimdevices" folder of old install and then replaced it in the new install, and the cache was a subfolder). Didn't seem to hurt anything at least. *Home:* VBA2.5 4TB -or- rPi4B-8GB/pCP7.0/4TB>LMS 8.1.x>Transporter, Touch, Boom, Radio (all ethernet) *Cottage:* rPi4B/pCP6.1/4TB>LMS 8.0.x>Touch>Benchmark DAC I, Boom, Radio w/Battery (Radio WIFI) *Office:* Win10(64)>foobar2000 *The Wild: *rPi3B+/pCP4.0, hifiberry Dac+Pro, 4TB USB (LMS & Squeezelite) *Controllers:* iPhone11 & iPadAir3 (iPeng), CONTROLLER, Material Skin, or SqueezePlay 7.8 on Win10(64) *Files:* -Ripping-: dbpoweramp > FLAC; -Post-rip-: mp3tag, PerfectTunes, TuneFusion; -Streaming:- Spotify garym's Profile: http://forums.slimdevices.com/member.php?userid=17325 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
And what if after the restore LMS fails to start up? Some path might have changed or the like? If you restore the settings rather than the settings file (in its original location) that should not be a factor I don't think restoring individual prefs would really help here. Plus LMS knows triggers on prefs changes which could really hurt here. Eg. many prefs changes would trigger a rescan. Or LMS only has access to player prefs for players which currently are connected. There are a lot of different limitations which make importing prefs rather than a prefs file complex. I still believe this is a great idea for a plugin written by somebody who's enthusiastic about the idea. But I'm sorry to say, that's not me. This is a feature which must cover too many different expectations which are hard to build in to one single solution. A feature which is really hard to get done "right". A prefs file export/backup? Ok. But restore? That's opening a can of worms. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
1. In my old version of LMS running on an rPi with PiCorePlayer I copy (download) the old "prefs" and "cache" folders using WinSCP to my PC.* Why would you copy the cache folder? -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
I was not thinkng of backing up the actual plugin, but rather something using a list of installed plaugins so that the freshly installed LMS knows what plugins it would would need to install in order to be restored to its previous state. What ever works best. That's indeed part of the prefs folder already. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
justjason wrote: > ...however a LMS setup can be recreated, it just takes time to set it > all up and I would be happy to fiind a more streamlined way of doing > that. This is what I do (just did it yesterday). This is for an rPi setup, but the same thing has worked on both Windows and Linux setups (just check LMS > Settings > Information to see the equivalent location of the "prefs" and "cache" folders on your system (as these vary by operating system). My rPi, piCorePlayer approach: 1. In my old version of LMS running on an rPi with PiCorePlayer I copy (download) the old "prefs" and "cache" folders using WinSCP to my PC.* These folders are in "/mnt/LMSfiles/slimserver/" (note "LMSfiles" is the name I gave the mounted USB drive to my rPi, and you may have used a different name. You can see the location by looking at the webGUI for LMS > Settings > Information tab, bottom of that page *Unless you've changed it, your UserID and PW for accessing the rPi with WinSCP (or any similar program) is: UserID: tc Password: piCore 2. Once saved on the PC, in the "prefs" folder, I locate the file, "server.prefs" and open it with windows "notepad". Once open I search for "uuid" without the quotes. It should show up in two lines. I delete BOTH those lines. This info is specifically related to your old setup and will be replaced automatically in your new LMS setup. 3. Install new version of piCorePlayer, LMS, attach USB drive, etc. following the excellent instructions here: https://docs.picoreplayer.org/how-to/ 4. Once new piCorePlayer and LMS is running on rPi, I go into the piCorePlayer webGUI and STOP LMS. 5. Then I reverse step 1. I copy (UPLOAD) the "prefs" and "cache" folders from my PC to the correct location on the rPi using WinSCP. 6. Then on the piCorePlayer webGUI I START LMS. At this point when you open the LMS webGUI, you should see that your favorites, plugins, etc. are back in place. I recall that a handful of plugins may require some attention at this point, but fairly minor stuff. Perhaps you have to go through the simple "spotty" steps to authorize Spotify on your new LMS. *Home:* VBA2.5 4TB -or- rPi4B-8GB/pCP7.0/4TB>LMS 8.1.x>Transporter, Touch, Boom, Radio (all ethernet) *Cottage:* rPi4B/pCP6.1/4TB>LMS 8.0.x>Touch>Benchmark DAC I, Boom, Radio w/Battery (Radio WIFI) *Office:* Win10(64)>foobar2000 *The Wild: *rPi3B+/pCP4.0, hifiberry Dac+Pro, 4TB USB (LMS & Squeezelite) *Controllers:* iPhone11 & iPadAir3 (iPeng), CONTROLLER, Material Skin, or SqueezePlay 7.8 on Win10(64) *Files:* -Ripping-: dbpoweramp > FLAC; -Post-rip-: mp3tag, PerfectTunes, TuneFusion; -Streaming:- Spotify garym's Profile: http://forums.slimdevices.com/member.php?userid=17325 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
Settings would be easy. But the plugins? I always say "don't mess with the LMS managed plugins", because it can be a mess. Backup might work, but restore not. Might help in cases where a plugin disappears from the net. But in general it's not a good idea. I was not thinkng of backing up the actual plugin, but rather something using a list of installed plaugins so that the freshly installed LMS knows what plugins it would would need to install in order to be restored to its previous state. What ever works best. mherger wrote: > [color=blue]The restore part will require some more work (to make it > automatic): LMS > keeps the prefs in memory and writes them out to the config files before > > shut down. Which means that if we restored the files at runtime, the > restored files might get overwritten again with the old configuration. > > And what if after the restore LMS fails to start up? Some path might > have changed or the like? > [color=blue] One option would be make this only availible on a fresh install. mherger wrote: > > Yep, that part is obvious. > Great mherger wrote: > > Not what I was referring to. But you should have a backup strategy for > _any_ computer. And the LMS backup could just be part of it. > > Michael What other option does LMS offer ? mherger wrote: > > If you don't back up your NAS, then good luck... you accidentally delete > a > file? It's gone. No matter whether it's your wedding photos, tax > declaration or LMS configuration. > > Michael I would have a hard time recreating a lost photo, however a LMS setup can be recreated, it just takes time to set it all up and I would be happy to fiind a more streamlined way of doing that. justjason's Profile: http://forums.slimdevices.com/member.php?userid=69803 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
mherger wrote: > > Settings would be easy. But the plugins? I always say "don't mess with > the LMS managed plugins", because it can be a mess. Backup might work, > but restore not. Might help in cases where a plugin disappears from the > > net. But in general it's not a good idea. > Agreed. Plugins might have interaction with something outside the LMS folders, so restoring should always involve calling the installer for that plugin and chances are big that this will destroy any settings that may have been applied. > > The restore part will require some more work (to make it automatic): LMS > > keeps the prefs in memory and writes them out to the config files before > > shut down. Which means that if we restored the files at runtime, the > restored files might get overwritten again with the old configuration. > That's probably the best argument so far to want to do the backup from within LMS. > > And what if after the restore LMS fails to start up? Some path might > have changed or the like? > If you restore the settings rather than the settings file (in its original location) that should not be a factor > > Not what I was referring to. But you should have a backup strategy for > _any_ computer. And the LMS backup could just be part of it. If you > don't back up your NAS, then good luck... you accidentally delete a > file? It's gone. No matter whether it's your wedding photos, tax > declaration or LMS configuration. > Depending on the OS there is still a chance to retrieve it, but in general this is correct gordonb3's Profile: http://forums.slimdevices.com/member.php?userid=71050 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
I would like to see a backup function that covers installed plugins and there settings as well as any settings that have been configured in the Settings would be easy. But the plugins? I always say "don't mess with the LMS managed plugins", because it can be a mess. Backup might work, but restore not. Might help in cases where a plugin disappears from the net. But in general it's not a good idea. LMS. I imagine something like a function "Save configuration" that would generate a downloadable file and a function like "Restore from configuration file" where I could upload such a file on a fresh install and click "Restore" and in a few minutes, I will have a fully setup LMS just as before. The restore part will require some more work (to make it automatic): LMS keeps the prefs in memory and writes them out to the config files before shut down. Which means that if we restored the files at runtime, the restored files might get overwritten again with the old configuration. And what if after the restore LMS fails to start up? Some path might have changed or the like? I do not mind if this is done as a separate plugin, but as a beginner, searching through the file system and hoping that I have copied the correct file to be later replaced has a hit and miss kind of success. Yep, that part is obvious. When you say a backup through the OS I take it you mean an entire OS image backup including all other installed software ? Not what I was referring to. But you should have a backup strategy for _any_ computer. And the LMS backup could just be part of it. If you don't back up your NAS, then good luck... you accidentally delete a file? It's gone. No matter whether it's your wedding photos, tax declaration or LMS configuration. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
I can think of a number of reasons. People may be running LMS on headless hardware that is running some OS that they are not familiar with to operate on console level, e.g. Synology or other NAS type systems with an HTTP front-end. Depending on whether the OS ships a package for LMS it may also have relocated some of the files to meet OS Right, makes sense. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
A great idea. Yes please. And maybe an option to select what you want backed-up? [emoji848] Sent using Tapatalk on my Samsung Note 10+ 5G Steve Kettering, UK StevePalmer's Profile: http://forums.slimdevices.com/member.php?userid=42535 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
yes this would be great for all the reasons stated PiCorePlayer 6.1 on Allo Digi One Signaturewith (Lounge) PiCorePlayer 6.1 with pi official touchscreen and hifiberry Dig+ (Office) PiCorePlayer 6.1 with pi official touchscreen and hifiberry DAC+(Kitchen) Radio (Bedroom) PiCorePlayer 6.1 with pi official touchscreen and USB DAC (Bedroom) Squeezelite=x (Garage) PiCorePlayer 6.1 with hifiberry AMP+(Patio 2) PiCorePlayer 6.1 with hifiberry AMP+(Patio 2) LMS 8 on DIY Unraid 6 Server (i5) Squeeze user since the SB1 markiii's Profile: http://forums.slimdevices.com/member.php?userid=63801 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
mherger wrote: > > I think a backup and restore fuction would be a great addotion to the > > LMS platform, I know I would use it often. > > What would you want to be backed up? And why would you do that through a > > plugin, and not the operating system? > > -- > > Michael I would like to see a backup function that covers installed plugins and there settings as well as any settings that have been configured in the LMS. I imagine something like a function "Save configuration" that would generate a downloadable file and a function like "Restore from configuration file" where I could upload such a file on a fresh install and click "Restore" and in a few minutes, I will have a fully setup LMS just as before. I do not mind if this is done as a separate plugin, but as a beginner, searching through the file system and hoping that I have copied the correct file to be later replaced has a hit and miss kind of success. When you say a backup through the OS I take it you mean an entire OS image backup including all other installed software ? If so, yes, that is one way to do it, but if i break something in LMS I would like to be able to restore LMS without a full OS restore. justjason's Profile: http://forums.slimdevices.com/member.php?userid=69803 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
mherger wrote: > > I think a backup and restore fuction would be a great addotion to the > > LMS platform, I know I would use it often. > > What would you want to be backed up? And why would you do that through a > > plugin, and not the operating system? > > -- > > Michael I can think of a number of reasons. People may be running LMS on headless hardware that is running some OS that they are not familiar with to operate on console level, e.g. Synology or other NAS type systems with an HTTP front-end. Depending on whether the OS ships a package for LMS it may also have relocated some of the files to meet OS standards. A plugin would be able to reference Custom.pm to find the files that should be backed up. gordonb3's Profile: http://forums.slimdevices.com/member.php?userid=71050 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
I think a backup and restore fuction would be a great addotion to the LMS platform, I know I would use it often. What would you want to be backed up? And why would you do that through a plugin, and not the operating system? -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
I think a backup and restore fuction would be a great addotion to the LMS platform, I know I would use it often. justjason's Profile: http://forums.slimdevices.com/member.php?userid=69803 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
So, If I need to recover my LMS configuration again, or start over due to some problem or other, on Windows I just restore C:\ProgramData\Squeezebox\Cache\ C:\ProgramData\Squeezebox\prefs\ I'd only care about prefs. The cache is large and would be re-built anyway. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
So, If I need to recover my LMS configuration again, or start over due to some problem or other, on Windows I just restore C:\ProgramData\Squeezebox\Cache\ C:\ProgramData\Squeezebox\prefs\ and then run an install and it should be recovered? --- https://ctproduced.com < Creed Taylor/CTI/KUDU http://markcathcart.com/about Running LMS Server, currently v8.0.0, (1600976618) on Headless WIN10 System; music on Netgear ReadyNAS; Transporter(Living Room)+Duet Controller; Squeezebox Touch(Master Bedroom), (2x)Boom(Office, Patio), Radio(Guest Bedroom), Classic(garage), Duet(basement). Also using Squeezeplay on Windows 10. Use Orange Squeeze app on Android. cathcam's Profile: http://forums.slimdevices.com/member.php?userid=43414 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
edwin2006 wrote: > I can work with that but where to find "cache of installed plugins"? > Since I read that repo for reset volume plugin appears to be gone. Cache/InstalledPlugins/Plugins See "Plugin Folders": mherger wrote: > > See Settings/Information in LMS. QLMS 8.0.0@2.20 x64 (digimaster) with perl 5.30.1 / QNAP 469L QTS 4.3.4 dolodobendan's Profile: http://forums.slimdevices.com/member.php?userid=67663 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
kidhazy wrote: > As a starting point I'll now be grabbing these directories and sub-dirs > (based on what your 'Information' tab of your settings page says for > your installation): > > Preferences Folder./volume1/@appstore/SqueezeCenter/prefs > Plugin Folders. > /volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins, > /volume1/@appstore/SqueezeCenter/Plugins > > The cache of installed plugins is probably not worthwhile as that gets > rebuilt, but it may be good to have a copy incase anything disappears > from a repo (??)I can work with that but where to find "cache of installed > plugins"? Since I read that repo for reset volume plugin appears to be gone. *SqueezeBoxes:* 1x Transporter (Living room) 1x SB2 (shed), 1x Radio (Kitchen), 1x Boom (Dining room), 1x piCorePlayer (jacuzzi), 1x piCorePlayer (Garden) 1x OSMC + Squeezelite (Movie room), 1x Touch (Study 2), few spare unit's *Server:* LMS on Pi3 7.9.1. on PcP 3.21 *Network:* AVM Fritzbox, Netgear Smart Switch 24p, 3x Ubiquity edwin2006's Profile: http://forums.slimdevices.com/member.php?userid=66926 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
The cache of installed plugins is probably not worthwhile as that gets rebuilt, but it may be good to have a copy incase anything disappears from a repo (??) You'd better keep a copy of the archive file for this case. You can find download URLs in the repository file: http://repos.squeezecommunity.org/extensions.xml -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
What would be the key directories? See Settings/Information in LMS. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
edwin2006 wrote: > What would be the key directories? As a starting point I'll now be grabbing these directories and sub-dirs (based on what your 'Information' tab of your settings page says for your installation): Preferences Folder./volume1/@appstore/SqueezeCenter/prefs Plugin Folders. /volume1/@appstore/SqueezeCenter/Cache/InstalledPlugins/Plugins, /volume1/@appstore/SqueezeCenter/Plugins The cache of installed plugins is probably not worthwhile as that gets rebuilt, but it may be good to have a copy incase anything disappears from a repo (??) kidhazy's Profile: http://forums.slimdevices.com/member.php?userid=42259 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
What would be the key directories? *SqueezeBoxes:* 1x Transporter (Living room) 1x SB2 (shed), 1x Radio (Kitchen), 1x Boom (Dining room), 1x piCorePlayer (jacuzzi), 1x piCorePlayer (Garden) 1x OSMC + Squeezelite (Movie room), 1x Touch (Study 2), few spare unit's *Server:* LMS on Pi3 7.9.1. on PcP 3.21 *Network:* AVM Fritzbox, Netgear Smart Switch 24p, 3x Ubiquity edwin2006's Profile: http://forums.slimdevices.com/member.php?userid=66926 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
Re: [SlimDevices: SqueezeCenter] LMS Config backup/restore
Is there anything out there, or do most people just backup the key directories as I will be doing from now on ? I personally do backup the prefs folder as part of the backup strategy I have in place anyway. -- Michael ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter
[SlimDevices: SqueezeCenter] LMS Config backup/restore
After just accidentally deleting my LMS installation on my NAS, and having to reinstall/reconfigure everything (I did have some prefs config files saved, though a bit old) I was wondering if anyone has created a routine or plugin that will backup all appropriate LMS server/plugin configuration files for an easier recovery? I assume all the prefs files for the config and plugins will be needed along with favourites and any plugin data (eg. for me it was IRBlaster configs) Is there anything out there, or do most people just backup the key directories as I will be doing from now on ? Thanks. kidhazy's Profile: http://forums.slimdevices.com/member.php?userid=42259 View this thread: http://forums.slimdevices.com/showthread.php?t=112436 ___ Squeezecenter mailing list Squeezecenter@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/squeezecenter