Recent answers to how can I restore / recover accidentially deleted history? Linux Mint 17 Qiana Firefox 66.0.3https://support.mozilla.org/mk/questions/12778322020-01-23T03:46:47-08:00It will be recreated if it is removed from the directory.
Initially i had hope that the transaction 2020-01-23T03:46:47-08:00crankygoathttps://support.mozilla.org/mk/questions/1277832#answer-1283912<p>It will be recreated if it is removed from the directory.
</p><p>Initially i had hope that the transaction was not actually written into the DB yet (at the time) but i can't see that being the case now. It does keep a table of deleted bookmarks, only i have no idea when the DB actually gets flushed. Its behavior with cookie/site data is atrocious (unless that is somehow only the front end) so it would not surprise me if there had initially been a dirty DB which could have offered some recovery.
</p>places.sqlite doesn't get recreated when you make changes to bookmarks or history, but merely the co2020-01-23T03:14:50-08:00cor-elhttps://support.mozilla.org/mk/questions/1277832#answer-1283892<p>places.sqlite doesn't get recreated when you make changes to bookmarks or history, but merely the content of the current file is rewritten (replaced) with newer data, so once the transaction has been written to places.sqlite then this deleted history is lost.
Since there is only one copy of this file available there is nothing to recover.
</p>You need to right-click → Copy → select an empty spot on a folder or on your desktop &rarr2020-01-23T02:43:35-08:00crankygoathttps://support.mozilla.org/mk/questions/1277832#answer-1283884<p>You need to right-click &rarr; Copy &rarr; select an empty spot on a folder or on your desktop &rarr; paste.
</p><p>You should also be able to right-click &rarr; Open with "DB Browser...", but you really do want a separate copy of the file.
</p><p>Note: If the only copy is now on the desktop, Firefox will create a new, empty places.sqlite in the Firefox profile folder the next time Firefox is started, so that will likely need to be replaced with a copy from the one on your desktop.
</p>
<blockquote>
When I klick it, "unvalid data format" pops up.
</blockquote>
<p>Is this a Mint dialog, or a dialog box from DB Browser? I am not sure why you would get this message.
</p>Thank you very very much. Sorry... I finally managed to pull it to my desktop. It didn't let me copy2020-01-22T16:23:49-08:00meinfriedenhttps://support.mozilla.org/mk/questions/1277832#answer-1283742<p>Thank you very very much. Sorry... I finally managed to pull it to my desktop. It didn't let me copy it. When I klick it, "unvalid data format" pops up.
</p>I suggested you move a copy of this file to your desktop before... Now you have been using it for d2020-01-22T13:33:26-08:00crankygoathttps://support.mozilla.org/mk/questions/1277832#answer-1283716<p>I suggested you move a copy of this file to your desktop before... Now you have been using it for days. I wish you would have said immediately when you could not find it. This is the last thing you want to do with anything deleted when you are hoping for recovery. You stop using the file (or disk, or whatever the relevant thing is) immediately, because deleted data gets overwritten.
</p><p>It's in your picture.
</p><p>Yes you probably cannot browse to the file with DB Browser for SQLite while it is still <em>in a hidden directory</em>.
</p>I also tried the same with the browser closed.
2020-01-21T19:31:26-08:00meinfriedenhttps://support.mozilla.org/mk/questions/1277832#answer-1283451<p>I also tried the same with the browser closed.
</p>thank you very very much. Ich installed the sqlitebrowser and opened it. As I wasn't able to find an2020-01-21T19:30:32-08:00meinfriedenhttps://support.mozilla.org/mk/questions/1277832#answer-1283450<p>thank you very very much. Ich installed the sqlitebrowser and opened it. As I wasn't able to find any files you mentioned, I tried "/home/{user}/.mozilla/firefox/ but there are only 3 files like seen in the screenshots. But I couldn't find any "places.sqlite"
</p>I honestly don't know how good the prospects are, but i can't guess at the behavior of FF 68. If you2020-01-21T17:36:15-08:00crankygoathttps://support.mozilla.org/mk/questions/1277832#answer-1283433<p>I honestly don't know how good the prospects are, but i can't guess at the behavior of FF 68. If you want to check without using a Windows box, here is the way i am personally capable of sorting out.
</p><p>Qiana has an Ubuntu 14.04 package base, so you can get DB Browser for SQL from the PPA listed on the downloads page, and it should work, unless something has changed without notice. It worked fine on 19.3 Tricia.
</p><p>Just crack the terminal and do:
</p><p><code>
sudo add-apt-repository -y ppa:linuxgndu/sqlitebrowser
</code></p><p><code>sudo apt-get update
</code></p><p><code>sudo apt-get install sqlitebrowser
</code>
</p><p>With Firefox closed:
Launch the DB browser
Click <em>Open Database</em>
Navigate to wherever your places.sqlite is
</p><pre> -OR-
</pre>
<p>Navigate to where your places.sqlite file is
Right-click the file and select <em>Open with DB Browser for SQLite</em>
</p><p>Click the <em>Browse Data</em> tab
For Table: select <em>moz_historyvisits</em>
</p><p>Now, this won't look very interesting, but the dates are what we want to check.
</p><p>(I mean, if you can read unix epoch time in microseconds, just scroll to the date range of interest, look at the number in the place_id column, then look that up in the moz_places table&nbsp;:D )
</p><p>If i could do SQL, this would be less of an adventure, but here goes.
</p><p>Click <em>File &rarr; Export &rarr; Table(s) as CSV file...</em>
moz_historyvisits should already be selected. Click <em>OK</em>.
Save this to your Desktop.
<em>Click File &rarr; Close database</em>, then close the program.
</p><p>You now have a file moz_historyvisits.csv on your Desktop. It should have a LibreOffice Calc icon. I hope.
</p><p>Double-click the file. You should be greeted shortly by the Calc Text Import screen.
At the bottom where it shows the file contents, you want to right-click each column and change it from Standard to Hide, except for the visit_date column.
Click <em>OK</em>.
Now you should see a spreadsheet view with only one column, the visit_date.
<em>Click File &rarr; Save As... &rarr;</em> and append _s to the name so it reads moz_historyvisits_s
Choose to save it to Desktop
Click <em>Save</em>
A modal dialog box will appear. Click <em>Use Text CSV Format</em>.
A file moz_historyvisits_s.csv should now be on your desktop.
(You can right-click this and open it in your text editor to delete the visit_date line at the top, or not. Just be aware that you didn't visit one site 1969.&nbsp;:D )
</p><p>Open your Home folder, then right-click your Desktop folder &rarr; <em>Open in Terminal</em>
Copy this &darr;
<code>
cat moz_historyvisits_s.csv | cut -c 1-10 | awk '{print strftime("%c",$1)}' &gt; date.txt
</code>
and paste it into the Terminal window.
Hit <em>Enter</em>.
</p><p>Now you will have what is probably a rather long file of dates, and hopefully you can tell whether your chunk of time is missing or not.
</p><p>If your date range is present, keep your places.sqlite copy safe somewhere. Maybe someone can do SQL on the DB and fish out what you need, or maybe there are scripts somewhere that can export properly formatted history. This, or find a machine with Windows 98 or newer, and get the 32-bit MZHistory View to get your history exported.
</p><p><br>
Given that you clearly value your Firefox profile from deep-time, i highly suggest backing up the entire profile occasionally. Most definitely do so if you ever upgrade your Firefox or OS.
</p>Couln't find a DB Browser for SQLIte in the Linux Mint Mate 17 packages.
Sorry I did open and close2020-01-21T04:51:35-08:00meinfriedenhttps://support.mozilla.org/mk/questions/1277832#answer-1283272<p>Couln't find a DB Browser for SQLIte in the Linux Mint Mate 17 packages.
Sorry I did open and close it, but I always open the previous session so that the tabs and everything from the previous sesson open again.
</p><p>How can I check it with the DB Browser for SQLIte on Linux?
</p><p>Thank you very much.
</p>I would guess that the DB has already been flushed, but there is no harm in trying. I hope you copie2020-01-21T02:28:11-08:00crankygoathttps://support.mozilla.org/mk/questions/1277832#answer-1283230<p>I would guess that the DB has already been flushed, but there is no harm in trying. I hope you copied the file immediately and have not opened and closed the browser several more times.
</p>well, I already closed the browser. Is there still a chance?
2020-01-20T15:26:04-08:00meinfriedenhttps://support.mozilla.org/mk/questions/1277832#answer-1283142<p>well, I already closed the browser. Is there still a chance?
</p>History and cache are actually separate things.
If you have not closed the browser yet, you may be 2020-01-20T05:33:05-08:00crankygoathttps://support.mozilla.org/mk/questions/1277832#answer-1282980<p>History and cache are actually separate things.
</p><p>If you have not closed the browser yet, you may be able to find the entry if Firefox does not flush these immediately.
Find your places.sqlite in your Firefox user profile and make a copy to e.g, your desktop. This contains bookmarks and history.
</p><p>Type about:profiles in the address bar and Enter. Click the Open Directory button next to your profile's Root Directory entry. The file is in the root of this folder.
</p><p>You can browse through this with DB Browser for SQLIte <a href="https://sqlitebrowser.org/" rel="nofollow">https://sqlitebrowser.org/</a>
</p><p>If you can copy the file over to a Windows machine, you can try this tool which is meant specifically to display history:
<a href="https://www.nirsoft.net/utils/mozilla_history_view.html" rel="nofollow">https://www.nirsoft.net/utils/mozilla_history_view.html</a>
</p>