
I want to limit the number of bookmark backups to 4. How can I do this?
Hello Firefox friends--
Windows 7 Premium, 32 bit, Firefox 28.
I would like to do as in the title of this question, limit the number of bookmark backups to 4. My reason is that there is no need for more than that to accumulate and use disk space. In the event I needed to restore my bookmarks, I would always choose the most recent, and I backup my profile directory weekly to a zip drive in case of serious errors.
I see two possible settings involved in about:config; . browser.bookmarks.max_backups is set to 4 by me and stays that way. Another setting that seems involved may be browser.places.smartBookmarksVersion ? It defaults to 6 and if I change it to 4 it resets itself when I exit and open FF.
So is this something system deep and can't be changed effectively (like limiting history...let's not go there, different thread..) or is there something else I should do? Right now I just go in and delete the 5th one manually every day but there hopefully is a better solution.
Thanks.
Τροποποιήθηκε στις
Όλες οι απαντήσεις (6)
You can set the number of JSON bookmark backups via the browser.bookmarks.max_backups pref on the about:config page like you wrote above.
Leave other prefs like browser.places.smartBookmarksVersion that are used for internal purposes alone.
Such version prefs are used to update the SQLite database file when necessary for later Firefox versions.
You can open the about:config page via the location bar
Hello corel--
If you read above where i say, "browser.bookmarks.max_backups is set to 4 by me and stays that way", you would see that I have already done that and it is not working, or I wouldn't be writing this. Once I saw browser.places.smartBookmarksVersion resets, I have left this alone. I have been watching this for a week or two to try and see if the browser.bookmarks.max_backups would work, but it doesn't appear to. Is the oldest JSON backup supposed to be deleted upon the creation of the new one, or is it on a 24 hr. cycle or some other dependency?
I should mention that my box is running all the time, it is a server as well, so if this setting only works on reboot or something, that would be a problem. My setting "delete history on exit" works fine, though, so I think maybe this is a bug???
What I see is that a new backup JSON bookmarks file is generated every morning when I first open FF. However the 5th (oldest) bookmark remains. I have not just let them build up to see when they will stop, or if they will.
That is why I am asking this.
Thanks.
Τροποποιήθηκε στις
If you leave four bookmarks.json files in the bookmarkbackups folder (so delete older backups and only leave the four latest) then that number should stay at four and older backups should be deleted.
A JSON backup is created when you start Firefox and only the first time you start Firefox on a day.
I have been doing that, cor-el, and it is not deleting the 5th (oldest). I had 4 last night, and upon start up of my browser today it created a new one and did not delete the 5th (oldest one).
Τροποποιήθηκε στις
All backups beyond the maximum should be removed.
See create: function PB_create(aMaxBackups, aForceBackup)
- resource://gre/modules/PlacesBackups.jsm
Yes, the operative word is "should." I wish I could look at: function PB_create(aMaxBackups, aForceBackup) and resource://gre/modules/PlacesBackups.jsm but they are not linked.
Thanks.