How to backup the Brave profile

brave is an open-source browser that emphasizes privacy, security, ease of use and speed. This browser runs on Chromium, an alternative open-source to Google Chrome.

Brave is your back-up

To make a backup, you can use the Tar compression program in Linux. This is why: Tar is extremely versatile and fast. You can use it against the GPG encryption to increase security.

For the backup to begin, please close all Brave web browsers on your Linux desktop. Because the profile has files open, backups cannot be performed while it is opened. When the browser has closed, you will need to press ALT + T (or Ctrl+ Shift +) on the keyboard. Next, open a terminal window by following the instructions.

1. Use the CDcommand from the terminal window to access the /.config location. This folder stores all configuration files that are used by programs running on Linux PCs, including Brave.


Step two: Open the /.config folder and run the _lscommand. To take a closer look at its contents, The BraveSoftware directory is the place where you will find all your information.

BraveSoftware might not appear in your folder. You will need to reinstall Brave to be able to create a backup.


Next step: Create a compressed archive of the Brave profile information using the tarcommand.

Keep in mind, however that the tarcommand may require compression to complete within a few minutes. How robust the hardware on your computer affects how fast compression happens.

tar -czvf my-brave-browser-backup.tar.gz BraveSoftware

Step 4: When the tar command finishes compressing your backup, it will output a TarGZ archive file with the name “brave-browser-backup.tar.gz.” You will need to copy it to the home directory (~) to gain access to the backup file.

Using the mv command, place “my-brave-browser-backup.tar.gz” in the home folder.

mv my-brave-browser-backup.tar.gz ~/

Next Step5: The Brave backup file will be moved to home. You no longer have to save the terminal session to /.config. You can use the command for moving home (~).


After you’ve saved your terminal session to your home directory, continue the following section to find out how to encrypt it.

GPG Keygen to Encrypt Backup

GnuPG (or GPG) is used for encryption of the TarGZ backup. GPG is an easy to use encryption tool that works with TarGZ. It’s also available in many Linux distributions.

To install the latest GPG version on Linux computers, please visit Select the Linux distribution of your choice and then follow the instruction to activate it.

Go back to the terminal window, and then follow the steps.

Start with The lscommand will confirm that Brave has not been deleted from the home directory.


2nd Step: The gpgcommand encrypts your backup. Remember to use strong passwords when running encryption commands. This will ensure the security of encrypted data.

gpg -c my-brave-browser-backup.tar.gz

Step 3: When the encryption process is complete, GPG will output a file with the name of “my-brave-browser-backup.tar.gz.gpg.” You will now need to delete the unencrypted backup.

rm my-brave-browser-backup.tar.gz

The encryption process will be complete once you have deleted the original backup. Take “my-brave-browser-backup.tar.gz.gpg”, upload it to Dropbox, Google Drive, or place it on an external hard drive for safekeeping.

Backing up the backup

You are installing Linux new and you want your Brave browser profile set up? By pressing Ctrl+ Alt + T (or Ctrl+Shift +T) in a terminal window, you can now open the terminal. You can then follow the steps below for how to restore the backup.

Step 1. Launch the Linux File Manager. Place “my-brave-browser-backup.tar.gz.gpg” in the home directory, if it’s not there already.

Step 2: Using the gpg command, decrypt the “my-brave-browser-backup.tar.gz.gpg” file.

gpg my-brave-browser-backup.tar.gz.gpg

Third Step: Use the tar command for extracting the unencrypted back file to the folder /.config.

tar xvf my-brave-browser-backup.tar.gz -C ~/.config

Fourth Step: Your Brave browser profile will be restored to the root directory. You can now remove the backup file from the folder using the rm command.

rm my-brave-browser-backup.tar.gz

You can now launch Brave Browser to restore your previous settings after you’ve removed the encrypted backup.