Geary is a superb e-mail program for Linux. It’s elegant, simple to arrange, and has numerous helpful options like a fast setup for plenty of e-mail suppliers. Sadly, for as feature-packed Geary is, it doesn’t have a manner for customers to create backups of a Geary Mail Profile.

To not fear! Even when your Geary software doesn’t allow you to make a backup, the Linux command-line will!

Back Up Geary Mail Profile

Z

The Geary e-mail software for Linux shops numerous configuration information within the ~/.config/geary/ folder of every consumer’s house listing. Additionally, the Geary app saves mail and different stuff in ~/.native/share/geary/. If you happen to’re seeking to create a whole backup of all the things in Geary, you’ll want to make sure that each of those folders are secure.

Earlier than making a backup of your mail, use the ls command and examine your information, to ensure all the things is there. In a terminal, run:

ls -a ~/.config/geary
ls -a ~/.native/share/geary

If nothing occurs if you run these two instructions, chances are you’ll must re-setup your Geary mail consumer. Re-sign in, and all the things must be good to go.

Use the mkdir command to create a brand new folder in your Linux desktop. On this folder, we’ll retailer all Geary information, to make backing up simpler.

mkdir -p ~/Desktop/geary-mail-backup

mkdir -p ~/Desktop/geary-mail-backup/config

mkdir -p ~/Desktop/geary-mail-backup/native

Your Geary backup folder is prepared. Now it’s time to maneuver all account configs and e-mail information into it. Begin through the use of the cp command to make a duplicate of your e-mail configuration information.

cp -r ~/.config/geary/ ~/Desktop/geary-mail-backup/config/

Subsequent, make a duplicate of the remainder of your Geary information with cp, and place it within the ~/Desktop/geary-mail-backup folder.

cp -r ~/.native/share/geary/ ~/Desktop/geary-mail-backup/native/

With all of the information in place, it’s time to create a TarGZ archive of the backup folder in your Linux desktop. To create the archive, use the tar command.

tar -czvf geary-mail-backup.tar.gz ~/Desktop/geary-mail-backup/

Compressing a backup of an e-mail consumer can take some time, particularly since most e-mail purchasers retailer quite a lot of information. Let the tar command create the archive, and be affected person. When the compression course of is completed, return to the terminal and use the mv command to maneuver geary-mail-backup.tar.gz to ~/Paperwork.

Compressing the geary-mail-backup folder right into a TarGZ archive is superb, and permits for straightforward importing to cloud storage companies like Dropbox, Google Drive, and many others. Although, understand that because it isn’t encrypted, anybody can tamper together with your e-mail in the appropriate circumstances.

Encrypting Geary Mail Back Up With GPG

Your Geary e-mail information is compressed all the way down to a single TarGZ archive. The following step on this course of is to make use of the GPG encryption software in order that solely you possibly can entry your backup information.

To encrypt your Geary mail information with GPG, you have to first set up it. Launch a terminal window and comply with the directions to get the most recent model of GPG working in your Linux OS.

Ubuntu

sudo apt set up gpg

Debian

sudo apt-get set up gpg

Arch Linux

sudo pacman -S gnupg

Fedora

sudo dnf set up gpg

OpenSUSE

sudo zypper set up gpg

Generic Linux

GPG is among the main encryption instruments for the Linux platform. Consequently, even probably the most unknown Linux distributions have it of their package deal repositories. To set up it, seek for “GPG” within the package deal supervisor.

After putting in GPG, return to the terminal and use it to encrypt your Geary TarGZ archive.

gpg -c geary-mail-backup.tar.gz

Working the encryption command will open a password immediate within the terminal. Use the immediate and write in a safe passcode. Can’t consider a very good password? Do your self a favor and take a look at strongepasswordgenerator.com.

Restore Geary Mail Profile Backup

Restoring your Geary e-mail backup on Linux begins by launching a terminal window and transferring it from the house folder to the ~/Paperwork folder.

cd ~/Paperwork

Geary has settings that go to a number of directories, so it’s not potential to do a fast and straightforward restore. As a substitute, this must be carried out manually. Begin the method by decrypting the backup. Then, extract the decrypted Tar archive inside the “Documents” folder.

gpg geary-mail-backup.tar.gz.gpg
tar xvf geary-mail-backup.tar.gz

Use the CD command and transfer into the newly extracted backup folder.

Observe: change username to your username within the command beneath or CD won’t work.

cd house/username/Desktop/geary-mail-backup/

Transfer into the config backup folder and make a duplicate of the settings to ~/.config.

cd config
cp -r geary/ ~/.config/

Do the identical with the native backup folder.

cd ..
cd native 
cp -r geary/ ~/.native/share/

With the settings restored, open up Geary once more. Your e-mail account, together with all of its messages will probably be there and able to go!



Source link

Share.
Leave A Reply

Exit mobile version