How to copy profiles?

I have Brave (v1.90.128) installed via Flatpak and I was wondering how I could copy and paste profiles.

Basically I would like to have a profile “template” with which I can make other (more specialized) profiles with.

Thanks.

@ForeverNoob

Consider:

https://support.brave.app/hc/en-us/articles/360039248271-Group-Policy

‘Where Brave Browser Profiles Are Located’

You should check out a program called SPB. You can see my profile for a link or search the internet for “SPB Start Private Browser”. Take a look at the project documentation around templates.

Note, that you will want to setup the configuration or environment variables with details for launching brave via the flatpack.

If you are using the fish shell and just want to test things with SPB this should work :

spb --browser brave --browser-path /var/lib/flatpak/exports/bin/com.brave.Browser

Then if you are happy with that, you can add options into the config file.
Reach out if you get stuck.

For Flatpak I would first make a copy of the whole Brave config directory while Brave is fully closed, not just one profile folder.

Commands:
flatpak kill com.brave.Browser
cp -a ~/.var/app/com.brave.Browser/config/BraveSoftware/Brave-Browser ~/.var/app/com.brave.Browser/config/BraveSoftware/Brave-Browser-template

Inside that directory, profiles are usually Default, Profile 1, Profile 2, etc. You can copy one of those folders as a starting point, but I would avoid reusing it for anything sensitive: cookies, sessions, extension state, history, saved passwords, and sync data may come along with it.

For a cleaner template, create a new Brave profile, set only the settings/extensions you want, close Brave, then copy that fresh profile folder before signing in anywhere or saving passwords.