4

I use Debian Linux in a VM.

When I create the VM, I install all of the applications/packages I use (I install them with sudo apt install), and then I copy a folder containing configuration/settings files into the VM.

For example: I have the file .config/micro/settings.json in the folder, so that I can have my preferred settings for the Micro text editor.

Is it possible to do this for Brave Browser? How do I do it?

baNaNa
  • 109

1 Answers1

4

It is as simple as copying over the ~/.config/BraveSoftware/ directory to the new installation, e.g. with cp -a.

If you want to copy just the settings and nothing else, you need to copy ~/.config/BraveSoftware/Brave-Browser/Local\ State and ~/.config/BraveSoftware/Brave-Browser/Default/Preferences.

You could automate that as following:

#!/bin/bash

BAK_DIR="/path/of/your/brave/backup"

yay -S brave-bin #install brave, modify to use your distros package manager timeout 5 brave #initial launch to create config folder structure

cp -a "$BAK_DIR/BraveSoftware/Brave-Browser/Local\ State" ~/.config/BraveSoftware/Brave-Browser/ cp -a "$BAK_DIR/BraveSoftware/Brave-Browser/Default/Preferences" ~/.config/BraveSoftware/Brave-Browser/Default

mashuptwice
  • 3,395