Traditional method of backing up Chrome profile on Linux, Ubuntu
To back up Chrome profile on Linux, Ubuntu using the traditional method, firstly open a Terminal window without requiring root access. Next, use the CD command to navigate to the config directory located inside the Home directory:
cd -/.config
The Config directory contains most program settings and profiles, including user Chrome profiles. Use the tar command to create a Gzip compressed file containing the entire profile directory:
tar -jcvf google-chrome-profile.tar.bz2 google-chrome
Once the process is complete, proceed to use the mv command to save the copy to the - / directory:
mv google-chrome-profile.tar.bz2 -/
Now you can upload the backup to Dropbox, or save it to an external hard drive, or even on another Linux machine. Note that if you upload an unencrypted Chrome profile, hackers can easily attack and steal your information.
If you prefer not to encrypt your Chrome profile backups, you can store them in a secure location, remembering to set a strong password on the storage account/device for the backups.
Restoring Chrome Profile on Linux, Ubuntu
To restore Chrome Profile on Linux, Ubuntu, use the command below:
mv google-chrome-profile.tar.bz2 -/.config
cd -/.config
tar -xvf google-chrome-profile.tar.bz2
Encrypting Chrome Profile Backup
To encrypt the Chrome profile backup, firstly compress the Chrome directory into a Zip file. This makes encryption easier as GPG only encrypts Zip files rather than managing directories and files within.
After completing the previous steps, proceed to install GnuPG on your Linux, Ubuntu computer (if not already installed). Next, open a Terminal window and use the GnuPG tool to encrypt the Zip file containing the Chrome profile:
gpg -c google-chrome-profile.tar.bz2
Enter gpg -c into the Terminal window, and you will be prompted to set a new password. Enter a password that you want to use to access the encrypted profile. Once the encryption process is complete, delete the 'google-chrome-profile.tar.bz2' file. And keep the 'google-chrome-profile.tar.bz2.gpg' file that has been encrypted.
To decrypt the encrypted backup to restore the Chrome Profile on Linux, Ubuntu, use the command:
gpg google-chrome-profile.tar.bz2.gpg
Copy Chrome profile to Chromium
Additionally, you can copy the Chrome profile on Linux, Ubuntu to use on the Chromium browser. The merging process is quite simple. First, delete everything in the Chromium directory.
Note: You can perform the reverse operation. If you want to copy the Chromium profile to the Chrome browser, follow similar steps, but change -/.config/chromium to -/.config/google-chrome.
Next, enter the following commands into the Terminal window:
cd -/.config/chromium
rm *
rm -rf *
To unlock, simply click on your name in the Chromium browser and re-enter your Google login information. Your profile will be immediately unlocked.
Backing up and Restoring Chrome Profile on Linux, Ubuntu using Deja Dup
For a quick backup and restore of Chrome Profile on Linux, Ubuntu, consider using Deja Dup. This method allows you to create regular backups, encrypt backup containing all content in the Home directory, including Chrome profiles.
Despite being a relatively secure operating system with fewer easily installable applications on Linux, you can still find applications with features comparable to Windows or Mac. You can explore how to install Skype on Linux to install this popular chat program on Linux.
Here are 2 methods to backup and restore Chrome Profile on Linux, Ubuntu. You can choose either method to backup your Chrome profile and use it for restoration in case you reset your system. Wishing you success.