You are not logged in.
Profile-cleaner reduces browser profile size by cleaning/reindexing their sqlite databases.
Supported browsers:
*Chromium
*Conkeror
*Firefox
*Google-chrome
*Heftig's Aurora
*Midori
*Thunderbird
*QupZilla
If you can improve the code, plz send me a pull request. Github: https://github.com/graysky2/profile-cleaner
Enjoy!
Sample output and results using an "uncleaned" firefox profile:
Last edited by graysky (2013-02-15 23:22:01)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Not to post too many thanks in the same thread... thank you very much again
Offline
It's okay, I like to be thanked. Enjoy.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Another gem from you, graysky. Thanks a lot. Do you intend profile-cleaner to support opera in the future?
Offline
@mikkie - Easy to do if opera uses sqlite databases. I haven't used it in a while...
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Ah, opera doesn't seem to use sqlite database. My bad.
Offline
Thank you graysky. I was looking to do this and found this thread! This is a great utility.
Offline
Glad you like it.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Thank you for the tool.
Since some months, my firefox launcher is made with something like: "firefox ; for database in ~/.mozilla/firefox/koko/*.sqlite; do sqlite3 $database 'VACUUM;'; done"
...So that everytime i close the browser the databases are optimized.
The process with VACUUM is pretty fast if you do it everytime, but i noticed that your script takes a couple of time everytime i run it, probably because of reindexing?
Reindex helped to reduce the size for a very small amount (about 5MB on places.sqlite).
Does it provide a speed improvement other than a smaller size?
Last edited by kokoko3k (2012-09-15 19:40:16)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
@koko - If you're sync'ing the profile using profile-sync-daemon, smaller profiles will sync faster. Dunno if there is a noticeable improvement when using the browser or not.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
the slowness is from not using -maxdepth with all the `find`'s, it is iterating into every subdirectory
Offline
the slowness is from not using -maxdepth with all the `find`'s, it is iterating into every subdirectory
Interesting observation. I will modify the script.
EDIT: Done. Version 1.3 contains a maxdepth 2 limitation. I based this on my own firefox and chromium profiles. Feedback?
Last edited by graysky (2012-09-15 22:37:23)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
You're probably just ahead of yourself, but just a heads up: profile-cleaner-1.3.tar.xz is 404 on your website.
Love the tool though. Goes great with psd, cheers.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
You're probably just ahead of yourself, but just a heads up: profile-cleaner-1.3.tar.xz is 404 on your website.
Love the tool though. Goes great with psd, cheers.
Thanks for the heads-up. It's there now... I gotta add a sync step in my github update script.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Great stuff, just got it, thanks.
As an aside, do you think it'd be a good idea to add a .install file to tell users to shutdown their browser before running the script? I don't think vaccuming has any effect if the database is in use at the time.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
im not sure yours is working right with the chromium's files (since they have spaces in them) or its just not showing it right.
https://github.com/skydrome/random/blob … -vacuum.sh
Edit: response to "patches welcome" => https://aur.archlinux.org/packages/browser-vacuum/ which works and does it properly.
Last edited by skydrome (2012-12-08 08:40:59)
Offline
@graysky: I think it would be a good idea if it could be possibile to apply this tool to Mozilla Thunderbird, too. It also uses .sqlite files.
Offline
@WorMzy - The .install warning is a good idea. I will add it.
@skydrome - I will check into this. Patches are welcome if you see a problem.
@fturco - OK. I will look into a thunderbird function.
EDIT: All done in version 1.4 now in the AUR. Thanks to junag who must have been following this thread
Last edited by graysky (2012-09-16 12:00:04)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I know almost nothing about sqlite3, but while the "vacuum" command seems to reduce the size of the databases, the "reindex" command seems to do nothing as size is concerned. Question: is the "reindex" command needed? What does it do in practice? I read http://www.sqlite.org/lang_reindex.html but I don't understand it much.
Offline
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Hi and thanks for this script.
A little request:
I keep my thunderbird profile outside my home, and profile cleaner fails to find it.
The path to the profile is defined in profiles.ini with the "IsRelative" flag set to "0" - in this case, the line 70
find ${path}/$i -maxdepth 2 -name '*.sqlite' -print0 | xargs -0 -n 1 -I {} bash -c "do_clean {} 2>/dev/null"
should omit ${path}/, like
find $i -maxdepth 2 -name '*.sqlite' -print0 | xargs -0 -n 1 -I {} bash -c "do_clean {} 2>/dev/null"
Offline
OK... so if the variable 'IsRelative' is 0 then omit path from cleaning line? You mind submitting a pull request?
Last edited by graysky (2012-09-22 13:36:05)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
You mind submitting a pull request?
Sorry, I have no idea how to do that.
Offline
@daneel971 - Can you please try out my proposed code? It lives in the unstable branch of profile-cleaner.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
It works just fine - thanks again.
Offline