floodie Posted April 14, 2021 Share Posted April 14, 2021 Hi. What would be the repurcussions of doing this?..... The system will not change settings wise so would this cause a problem?..my reason for doing this is in a hope to prevent the corrupting of the xml's when the power suddenly drops. I realise the simple answer is to not suddenly drop the power however lets assume for a sec that it will and does happen every so often to me. Much appreciated Quote Link to comment Share on other sites More sharing options...
fraganator Posted April 15, 2021 Share Posted April 15, 2021 I imagine LaunchBox will throw a bunch of internal exceptions, and things like play count or last played info won't be updated. That said, it sounds like LaunchBox's data backup feature will handle your use case of potential corruption. It's enabled by default under Tolls -> Options -> Data -> Backups, and will create a snapshot of your data folder every time LaunchBox starts and exits. It keeps a rolling set of up to 25 backups. The backups can then be restored through the Tools -> Restore Data Backup menu. Quote Link to comment Share on other sites More sharing options...
floodie Posted April 15, 2021 Author Share Posted April 15, 2021 Hi Frag - Hmm ok. I was even wondering if there was a way, when i get these XML corrupted errors due to power loss and the machine is left with the error in the middle to perhaps have some fancy script run using a clever set of control panel commands that Copies the contents of a Backup to the data folder without having to get keyboard and mouse out everytime.. Dont know if that makes sense Its frustrating that Launchbox/bigbox does its saving on shut down. Couldnt it do any changes on the fly thus massively narrowing the chances of corrupted files on sudden loss Quote Link to comment Share on other sites More sharing options...
neil9000 Posted April 15, 2021 Share Posted April 15, 2021 1 hour ago, floodie said: Couldnt it do any changes on the fly thus massively narrowing the chances of corrupted files on sudden loss No, that would cause even more issues as trying to write to something that at the same time is being read is problematic. Quote Link to comment Share on other sites More sharing options...
fraganator Posted April 16, 2021 Share Posted April 16, 2021 13 hours ago, floodie said: Hi Frag - Hmm ok. I was even wondering if there was a way, when i get these XML corrupted errors due to power loss and the machine is left with the error in the middle to perhaps have some fancy script run using a clever set of control panel commands that Copies the contents of a Backup to the data folder without having to get keyboard and mouse out everytime.. Dont know if that makes sense Its frustrating that Launchbox/bigbox does its saving on shut down. Couldnt it do any changes on the fly thus massively narrowing the chances of corrupted files on sudden loss If you have a 'gold' set of xml files you're restoring from, you could use a batch file to copy them and then launch LB/BB. Here's a quick batch file which will recover from a backup file, then run LaunchBox. The backup file has been copied from the Backups folder to the top level LaunchBox folder, and renamed to Restore.7z. The batch commands below are saved to a file named Restore.bat, also in the LaunchBox folder. If you then run Restore.bat, it will extract Restore.7z to your Data folder, then run LaunchBox. I've done a quick test with the batch file and it works, but make any backups before running it just in case. @echo off ThirdParty\7-Zip\7z.exe x Restore.7z -oData -y -aoa Start LaunchBox.exe Quote Link to comment Share on other sites More sharing options...
floodie Posted April 16, 2021 Author Share Posted April 16, 2021 Hey Freg - thanks very much for this. When i get a sec i am going to try this out and report back. Great stuff thanks Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted April 19, 2021 Share Posted April 19, 2021 On 4/15/2021 at 3:53 AM, floodie said: Hi Frag - Hmm ok. I was even wondering if there was a way, when i get these XML corrupted errors due to power loss and the machine is left with the error in the middle to perhaps have some fancy script run using a clever set of control panel commands that Copies the contents of a Backup to the data folder without having to get keyboard and mouse out everytime.. Dont know if that makes sense Its frustrating that Launchbox/bigbox does its saving on shut down. Couldnt it do any changes on the fly thus massively narrowing the chances of corrupted files on sudden loss It doesn't do all its saving on startup/shutdown. It *does indeed* save things as they are updated. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.