Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: thane on November 02, 2022, 03:28:00 AM

Title: Brave browser minimal backup
Post by: thane on November 02, 2022, 03:28:00 AM
I'm trying out the Brave browser in Tiny Core Pure 64. I generally like it, but on shutdown it backs up a lot of data, even though I'm deleting history etc on exit. All I really need to save is profile and bookmarks info. Has anyone had any luck figuring out what a "minimal" backup of Brave would require? Alternatively, are there other chromium-based browsers that are lighter?  I tried looking on the web but didn't find much.

Thane
Title: Re: Brave browser minimal backup
Post by: Juanito on November 02, 2022, 05:13:14 AM
You can use xfiletool.lst to exclude folders/files from your backup.
Title: Re: Brave browser minimal backup
Post by: GNUser on November 02, 2022, 01:10:22 PM
Hi, thane. The absolute bare minimum configuration is this:
Code: [Select]
$HOME/.config/BraveSoftware/Brave-Browser/First Run
$HOME/.config/BraveSoftware/Brave-Browser/Local State
$HOME/.config/BraveSoftware/Brave-Browser/Default/Bookmarks
$HOME/.config/BraveSoftware/Brave-Browser/Default/Preferences
Perhaps you could create such a barebones BraveSoftware directory, rename it BraveSoftware-minimum, then create a wrapper script which you always use to launch the browser. The wrapper script can be anywhere in your PATH that takes precedence over /usr/local/bin (e.g., $HOME/tc/.local/bin/brave-browser) and can look like this:
Code: [Select]
#!/bin/sh
cp -r $HOME/.config/BraveSoftware-minimum $HOME/.config/BraveSoftware
/usr/local/bin/brave-browser
rm -rf $HOME/.config/BraveSoftware

Now absolutely everything except your preferences and bookmarks are deleted every time you close the browser.
Title: Re: Brave browser minimal backup
Post by: GNUser on November 02, 2022, 01:16:24 PM
P.S. "First Run" and "Local State" are not technically required, but including these two files in your minimal config directory would prevent the browser from asking you pesky questions (e.g., whether it should be the default browser) every time you start it.
Title: Re: Brave browser minimal backup
Post by: GNUser on November 02, 2022, 01:21:32 PM
A less drastic approach that doesn't require a wrapper script:

start brave-browser -> click on the three dots ("Customize and control Brave") -> Settings -> Privacy and security -> Clear browsing data -> On exit -> check boxes for the things you want to be deleted on exit
Title: Re: Brave browser minimal backup
Post by: vinceASPECT on November 02, 2022, 06:33:55 PM
Sir,

i found "MIN" browser.

It's very fast and minimal by yardstick measure of those types of browsers

a chromium Fork  at 65 megs DONE as an rpm file


it does not allow Extensions, flags.....

It's beautifully simple but good at browsing,

Other stuff does not work like GOOGLE EARTH since i don't think it contains
openGL or such.

but much stuff DOES work correct though.  (involved web sites can work)

"Google Maps Go" works and many many others.

thx

C

https://minbrowser.org/
Title: Re: Brave browser minimal backup
Post by: vinceASPECT on November 03, 2022, 05:33:36 AM
Yes, sorry,

MIN web browser is also a .deb package too.

It also has the ARM builds.

https://github.com/minbrowser/min/releases

Thx
Title: Re: Brave browser minimal backup
Post by: thane on November 04, 2022, 01:40:50 AM
Thanks everyone. I'll try GNUser's suggestions with vinceASPECT's find as a fallback.

I did try to adjust the browser to clear history etc on exit, but it still saves a lot more data with these settings than (say) Mozilla-based browsers do. It doesn't look like there's an easy way to select the files GNUser suggests just using filetool.lst and xfiletool.lst, but I'll fiddle with it.
Title: Re: Brave browser minimal backup
Post by: Rich on November 04, 2022, 09:07:50 AM
Hi thane
Since you have a non-persistent  $HOME  which contains a large
directory, why not just make that directory persistent?

Move the directory to a persistent location, like  tce  for example:
Code: [Select]
mv $HOME/.config/BraveSoftware/Brave-Browser `readlink /etc/sysconfig/tcedir`
Link the persistent directory back to your home directory:
Code: [Select]
ln -s `readlink /etc/sysconfig/tcedir`/Brave-Browser $HOME/.config/BraveSoftware
Now only the soft link will be backed up and restored, not what it points to.