WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Brave browser minimal backup  (Read 2727 times)

Offline thane

  • Hero Member
  • *****
  • Posts: 697
Brave browser minimal backup
« 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Brave browser minimal backup
« Reply #1 on: November 02, 2022, 05:13:14 AM »
You can use xfiletool.lst to exclude folders/files from your backup.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1509
Re: Brave browser minimal backup
« Reply #2 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.
« Last Edit: November 02, 2022, 01:13:03 PM by GNUser »

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1509
Re: Brave browser minimal backup
« Reply #3 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.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1509
Re: Brave browser minimal backup
« Reply #4 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

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 801
Re: Brave browser minimal backup
« Reply #5 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/
« Last Edit: November 02, 2022, 06:37:43 PM by vinceASPECT »

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 801
Re: Brave browser minimal backup
« Reply #6 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

Offline thane

  • Hero Member
  • *****
  • Posts: 697
Re: Brave browser minimal backup
« Reply #7 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.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11622
Re: Brave browser minimal backup
« Reply #8 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.