Computer crashed - lost most of my settings in 1.5 afterwords

Discussion related to "Everything" 1.5 Alpha.
Post Reply
JTCGiants56
Posts: 192
Joined: Fri Nov 28, 2014 3:58 pm

Computer crashed - lost most of my settings in 1.5 afterwords

Post by JTCGiants56 »

After a failed wake-up from hibernation, I rebooted my PC and everything 1.5 was pretty much reset. All the settings were reset for folders, index settings etc. Oddly, some of my bookmarks are there, but not all.

It seems like what happened is it's now using a fresh .ini file in the same directory where my .exe is (C:\Program Files\Everything 1.5a).

And prior to that it was using the Everything-1.5a.ini and other 1.5 files located in C:\Users\user\AppData\Roaming\Everything.

The good news is my settings, bookmarks, etc files seem to still exist there and I've made a backup, so I guess it is just a matter of pointing back to this location.

Any idea why this would happen?

I'm running 1.5.0.1315a (x64).
void
Developer
Posts: 16756
Joined: Fri Oct 16, 2009 11:31 pm

Re: Computer crashed - lost most of my settings in 1.5 afterwords

Post by void »

Sorry to hear about the data loss.

This is caused by buffers not being flushed to disk.
If you examine the files you will most likely see they are filled with NUL characters.

I am looking into ways to have Everything keep a backup of all data and settings.



flush_file_buffers
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Computer crashed - lost most of my settings in 1.5 afterwords

Post by harryray2 »

Something that I do is to keep all the files (ini, csv, etc) in one directory, and every 2 or 3 days, or when I have changed anything, I backup the directory.
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Computer crashed - lost most of my settings in 1.5 afterwords

Post by raccoon »

void wrote: Sun Jul 10, 2022 10:50 pm flush_file_buffers
Is there a setting to flush and close all settings and database files to disk with immediacy, only accessing them when needed on demand then closing and releasing them again right away? No dangling handles?
void
Developer
Posts: 16756
Joined: Fri Oct 16, 2009 11:31 pm

Re: Computer crashed - lost most of my settings in 1.5 afterwords

Post by void »

With flush file buffers enabled, type in the following search and press ENTER:
/save-all


Everything uses an atomic rename when saving data and settings.
In theory the data should never be in an incomplete state.

For example:
Save new settings to Everything.ini.tmp
Replace Everything.ini with Everything.ini.tmp

However, what can happen is the file rename is flushed to disk before the Everything.ini data is written to disk.
-or-
Neither the rename or data is written to disk, but the rename is added to the transaction journal so on next boot the rename occurs with an incomplete file.

Enabling flush_file_buffers doesn't always help and will just make Everything feel slow.

There's a lot that can go wrong, so backups is the best option.
JTCGiants56
Posts: 192
Joined: Fri Nov 28, 2014 3:58 pm

Re: Computer crashed - lost most of my settings in 1.5 afterwords

Post by JTCGiants56 »

void wrote: Sun Jul 10, 2022 11:37 pm There's a lot that can go wrong, so backups is the best option.
Can you please give a list of folders for 1.4 and 1.5 that I should add to my backup list (my directory settings are set to default).
void
Developer
Posts: 16756
Joined: Fri Oct 16, 2009 11:31 pm

Re: Computer crashed - lost most of my settings in 1.5 afterwords

Post by void »

%APPDATA%\Everything
%LOCALAPPDATA%\Everything


For the portable version of Everything:
The same location as your Everything.exe
JTCGiants56
Posts: 192
Joined: Fri Nov 28, 2014 3:58 pm

Re: Computer crashed - lost most of my settings in 1.5 afterwords

Post by JTCGiants56 »

void wrote: Mon Jul 11, 2022 12:43 am %APPDATA%\Everything
%LOCALAPPDATA%\Everything


For the portable version of Everything:
The same location as your Everything.exe
Thanks!

This is off topic, but as I'm re-doing all my settings, I was reminded that a "Minimum size" would be very useful for the properties section. :)
Post Reply