How does chrome.storage.local store its data? (2023)

530 Views Asked by At

When using chrome.storage.local.set() in a Chrome extension, it seems now in 2023 that the data is being stored in .log files under %LOCALAPPDATA%\Google\Chrome\User Data\Default\Local Extension Settings\<extension-id>\ with the FULL HISTORY of old data as well as the new one.

How do you extract only the currently saved data from those .log files? Is there a system in place?

This question has been asked a dozen times before but none of them are up-to-date with how the storage is located on disk in the latest Chrome versions.

Would love an answer from Kalman, who wrote the storage API :)

For reference, this is how the file 000003.log looks like at my end: enter image description here I've been testing by repeatedly removing and adding the same data over time, and almost the full history of addition and deletion is stored in this file. I only want the data that's currently existing as chrome storage, and I need to know how to extract it from this file for backup and reading purposes.

0

There are 0 best solutions below