sienori / Tab-Session-Manager

WebExtensions for restoring and saving window / tab states
https://tab-session-manager.sienori.com/
Mozilla Public License 2.0
1.92k stars 190 forks source link

Save Sessions as files (see Session Manager) #527

Open x-ProgrammEd-x opened 4 years ago

x-ProgrammEd-x commented 4 years ago

Hi, for 2 days, I've been using Firefox 74 Portable. Until now I was using FF56 so that I could continue using my beloved Session Manager Addon. But you gotta move on at some point. Now I am struggling with the following: I would like to set up a regular backup task to save my TSM sessions on my NAS. After over an hour of googleing I still don't know where to find the TSM sessions. I found this reply by sienori from almost 2 years ago: [https://github.com/sienori/Tab-Session-Manager/issues/230]

The folder mentioned there, does (obviously, b/c portable) not exist as such for me:

IndexedDB is stored in the following location. [root folder]/storage/default/moz-extension+++3a2bd676-ce47-4d4c-9e87-3865c0c81000/idb/1782160000ssensosi.sqlite

My Path would be: c:\001 Portable Software\PortableApps\FirefoxPortable\Data\profile\storage\default\ but regardless there is no "moz-extension+++3a2bd676-ce....". Even if i search for ".sqlite" nothing is found.

So my question and request are two-fold:

  1. Where to currently find the stored sessions with the current v5.2.0?
  2. Please make TSM store the sessions as individual files (see Michael Kraft's Session Manager's .session files)
sienori commented 4 years ago

The location of the session data (sqlite) is described here: https://github.com/sienori/Tab-Session-Manager/wiki/Q&A:-Sessions-data-storage-location;-How-to-migrate-sessions-data-to-another-profile

Backing up sqlite files is not recommended. You can export sessions as a json file by the following method.

x-ProgrammEd-x commented 4 years ago

Thanks for the reply, sienori. This is very good input, I feel a little stupid now. But based on your reply, let's modify this request then:

The backup function is great, but it would be even greater if one could

Seeing that my browser is sometimes on for days and even weeks without restarting it once, this would be a great enhancaement.

Best regards

Zackyist commented 4 years ago

I second that, those features would easily make the backup function even better!

Personally I would also love to see an option for keeping only a certain number of the latest backup files - I just opened the backup folder to notice that it was 1 GB in size and contained hundreds of backup files from the last 10 months. So currently I have to setup my own script to clean the folder and only keep the last 30 or so backups.