You will need to find where Firefox stores your profile folder on both devices.
WARNING. You need to be familiar with SQL and understand what you're doing.
- Download a client to work with SQLite databases, e.g. DB Browser for SQLite
- Close/quit Firefox, make sure the process is ended. Backup both of your places.sqlite files.
- Open the new places.sqlite in the program and attach the old one. When/if it prompts you for an alias, choose "places_backup".
- Run the following query:
;WITH a AS ( SELECT guid, dateAdded, lastModified FROM places_backup.moz_bookmarks ) UPDATE moz_bookmarks SET dateAdded=(SELECT dateAdded FROM a WHERE guid=moz_bookmarks.guid), lastModified=(SELECT lastModified FROM a WHERE guid=moz_bookmarks.guid) WHERE (SELECT dateAdded FROM a WHERE guid=moz_bookmarks.guid) IS NOT NULL ;
- Save the new places.sqlite file and move it to the profile folder of your new Firefox.
Unfortunately, the next time you run Firefox Sync, the modified dates may still be reset to that date of when you run the Sync. However, the added dates will stay.
You can preview what items are common by running the following query:
SELECT b.title,b.id,b2.id,b.guid,b2.guid FROM moz_bookmarks as b JOIN places_backup.moz_bookmarks b2 where b.guid=b2.guid;
No comments:
Post a Comment