We just lately revealed an article on find out how to backup and restore a Google Chrome profile on Linux, now, our focus is on Firefox.
Like I did within the Chrome article, I’ll listing the steps required to backup and restore your Firefox Profile. The listed instructions are so that you can copy and paste in your terminal after you will have edited them to fit your wants e.g. your most popular listing path. Not one of the terminal instructions requires root entry.
A backup of your Firefox profile allows you to save all of your browser knowledge (extensions, historical past, settings, and many others.) in your native machine or some other storage medium in an effort to restore it at a later time in case of a system failure, recent set up, or migration. What’s cool about this technique is that you just don’t should be linked to the Web.
Firefox Profile Backup
1. Launch your terminal and navigate to the ~/.mozilla listing from your property folder with the next command.
$ cd ~/.mozilla
2. Use tar command to compress your whole ~/.mozilla listing right into a GZip archive with the next command.
$ tar -jcvf firefox-browser-profile.tar.bz2 .mozilla
three. As soon as the compression is full, transfer the archive file to any secure location of your selecting. This time round, let’s transfer the archive to the desktop folder.
$ mv firefox-browser-profile.tar.bz2 ~/Desktop
That’s it. Now you can again the profile archive to secondary storage gadgets or your most popular cloud service to revive it at any time when.
Firefox Profile Restore
1. Take away whole Mozilla’s configuration listing.
$ rm -rf ~/.mozilla
2. Subsequent, unzip the ~/.mozilla folder in your house listing with the next command:
$ tar -xvf firefox-browser-profile.tar.bz2
Now you may run Firefox with your whole bookmarks, historical past, extensions, and many others. again in place.
Encrypt Firefox Profile Backup
You already know by now that it is very important again up your profile with encryption as a result of it restricts your knowledge to you and customers with the important thing because the file shall be just about ineffective to anybody with out the rights to decrypt the archive.
It takes a pair extra steps to finish however we will simply full them with GnuPG. If it’s not put in, you may set up it utilizing following command.
$ sudo apt set up gnupg [On Debian/Ubuntu]
$ sudo yum set up gnupg [On CentOS/RHEL]
$ sudo dnf set up gnupg [On Fedora]
After you’ve created the backup, enter the next terminal command from the listing containing the backup.
$ gpg -c firefox-browser-profile.tar.bz2
Enter a safe password when gpg -c prompts you for one. As soon as finished with the encryption, save the firefox-browser-profile.tar.bz2.gpg file and delete the unprotected firefox-browser-profile.tar.bz2 file.
You’ll be able to decrypt the archive at any time with:
$ gpg firefox-browser-profile.tar.bz2.gpg
Do you’ve any feedback or inquiries to contribute? Drop them beneath within the feedback part.