How to install GMVAULT tool in Linux

To install GMVAULT tool in Linux

Gmvault is mainly used to take backup and restore Gmail accounts emails and chats. It synchronises the emails quickly and automatically adds the new mails received to your account. Installation of GMVAULT in Linux is explained in this manual.

Download the latest version of gmvault by using the following link,
http://gmvault.org/download.html

root@user1:/home/user1/Desktop# wget https://bitbucket.org/gaubert/gmvault-official-download/downloads/gmvault-v1.9.1-src.tar.gz

--2016-07-15 14:54:11--  https://bitbucket.org/gaubert/gmvault-official-download/downloads/gmvault-v1.9.1-src.tar.gz
Resolving bitbucket.org (bitbucket.org)... 104.192.143.1, 104.192.143.2, 104.192.143.3
Connecting to bitbucket.org (bitbucket.org)|104.192.143.1|:443... connected.
HTTP request sent, awaiting response... 302 FOUND
Location: https://bbuseruploads.s3.amazonaws.com/1851966d-6197-48e2-b341-c97b441fdcd1/downloads/bfa7eae1-d0ed-4e4f-8dc2-26b09339f875/gmvault-v1.9.1-src.tar.gz?Signature=NEfdZVgqzKz%2BUnbcvAQfiY7VsIo%3D& Expires=1468576452& AWSAccessKeyId=A.
.
.
Length: 97029 (95K) [application/x-tar]
Saving to: ‘ gmvault-v1.9.1-src.tar.gz’ 

gmvault-v1.9.1-src.tar.gz         100%[============================================================> ]  94.75K  39.7KB/s    in 2.4s    

2016-07-15 14:54:16 (39.7 KB/s) - ‘ gmvault-v1.9.1-src.tar.gz’  saved [97029/97029]

After downloading process is completed, extract the gmvault file.

root@user1:/home/user1/Desktop# tar -xvf gmvault-v1.9.1-src.tar.gz
gmvault-1.9.1/
gmvault-1.9.1/etc/
gmvault-1.9.1/etc/scripts/
gmvault-1.9.1/etc/scripts/gmvault
gmvault-1.9.1/gmvault.egg-info/
gmvault-1.9.1/gmvault.egg-info/dependency_links.txt
.
.
.
gmvault-1.9.1/src/gmv/log_utils.py
gmvault-1.9.1/src/gmv/mod_imap.py
gmvault-1.9.1/src/gmv/progress_test.py
gmvault-1.9.1/src/gmv/test_utils.py
gmvault-1.9.1/src/gmv/validation_tests.py

Install gmvault using the python installer.

root@user1:/home/user1/Desktop# apt-get install python python-setuptools

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python is already the newest version (2.7.11-1).
python set to manually installed.
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic linux-image-4.4.0-21-generic linux-image-extra-4.4.0-21-generic
.
.
.
Preparing to unpack .../python-setuptools_20.7.0-1_all.deb ...
Unpacking python-setuptools (20.7.0-1) ...
Setting up python-pkg-resources (20.7.0-1) ...
Setting up python-setuptools (20.7.0-1) ...

Go to the extracted gmvault directory and run the following command to install gmavault tool.

root@user1:/home/user1/Desktop/gmvault-1.9.1# python setup.py install
PATH = ./src/gmv/gmvault_utils.py
1.9.1
Gmvault version = 1.9.1
running install
running bdist_egg
running egg_info
writing requirements to gmvault.egg-info/requires.txt
writing gmvault.egg-info/PKG-INFO
writing top-level names to gmvault.egg-info/top_level.txt
writing dependency_links to gmvault.egg-info/dependency_links.txt
.
.
.
Installed /usr/local/lib/python2.7/dist-packages/six-1.10.0-py2.7.egg
Searching for argparse==1.2.1
Best match: argparse 1.2.1
Adding argparse 1.2.1 to easy-install.pth file

Using /usr/lib/python2.7
Finished processing dependencies for gmvault==1.9.1

How to use GMVAULT

Run the following command to launch the GMVAULT.

root@user1:/home/user1/Desktop/gmvault-1.9.1# gmvault sync testfacebookmessenger@gmail.com

Odd. Use default python2.7.x or 2.6.x distribution.
Use gmvault-db located in /root/gmvault-db.
Activate Gmvault db cleaning.
Create defaults in /root/.gmvault/gmvault_defaults.conf. Please touch this file only if you know what to do.
Authentication performed with Gmail OAuth2 access token.
Initiate interactive session to get OAuth2 token from Gmail.
gmvault will now open a web browser page in order for you to grant gmvault access to your Gmail.
Please make sure you' re logged into the correct Gmail account (testfacebookmessenger@Gmail.com) before granting access.
Press ENTER to open the browser.


After Sign in click allow. The gmvault will be allowed use your account

Now copy the verification code and paste it in the terminal. It automatically connects to the Gmail server.


The backup data is stored in the default location $HOME/gmvault-db (or) /HOME/gmvault-db.

Go to settings &rarr Forwarding and POP/IMAP and then enable POP and IMAP for all Gmail account.

To Customise synchronisation run the following command.

root@user1:~# gmvault sync --type custom --imap-req ' Since 1-May-2016 Before 30-May-2016'  ' testfacebookmessenger@gmail.com' 
Odd. Use default python2.7.x or 2.6.x distribution.
Use gmvault-db located in /root/gmvault-db.

Activate Gmvault db cleaning.
Create defaults in /root/.gmvault/gmvault_defaults.conf. Please touch this file only if you know what to do.
Authentication performed with Gmail OAuth2 access token.

Get OAuth2 credential from /root/.gmvault/testfacebookmessenger@gmail.com.oauth2.

Connect to Gmail server.

Perform custom synchronisation with imap request: Since 1-May-2016 Before 30-May-2016.

Start synchronization (2016-07-15T16h05m32s).

Start emails synchronization.
39 emails to be fetched.
Process email num 0 (imap_id:6) from 2016-05.
Process email num 1 (imap_id:8) from 2016-05.
Process email num 2 (imap_id:10) from 2016-05.
Process email num 3 (imap_id:12) from 2016-05.
.
.
.

Will delete 0 chat(s) from gmvault db.

Deletion checkup done in 2s.
================================================================
Sync operation performed in 3s.
Number of reconnections: 0.
Number of emails quarantined: 0.
Number of emails that could not be fetched: 0.
Number of emails that were returned empty by gmail: 0.
Number of emails without label information returned by gmail: 0.
================================================================

To restore the backup files to the gmail server run the below command

root@user1:~# gmvault restore testfacebookmessenger@gmail.com
Odd. Use default python2.7.x or 2.6.x distribution.

Use gmvault-db located in /root/gmvault-db.

Create defaults in /root/.gmvault/gmvault_defaults.conf. Please touch this file only if you know what to do.
Authentication performed with Gmail OAuth2 access token.

Get OAuth2 credential from /root/.gmvault/testfacebookmessenger@gmail.com.oauth2.

Connect to Gmail server.

Start restoration (2016-07-15T16h15m48s).
.
.
.
Restore chats in gmail account testfacebookmessenger@gmail.com.
Read chats info from /root/gmvault-db gmvault-db.
Total number of chats to restore 0.
Got all chats id left to restore. Still 0 chats to do.

================================================================
Sync operation performed in 1m 23s.
Number of reconnections: 0.
Number of emails quarantined: 0.
Number of emails that could not be fetched: 0.
Number of emails that were returned empty by gmail: 0.
Number of emails without label information returned by gmail: 0.
================================================================

Run the following command to know more option about Gmvault.

root@user1:~# gmvault -h

Odd. Use default python2.7.x or 2.6.x distribution.

usage: gmvault [-h] [-v] {sync,restore,check,export} ...

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program' s version number and exit

subcommands:
  {sync,restore,check,export}
                        valid subcommands.
    sync                synchronize with a given gmail account.
    restore             restore gmvault-db to a given email account.
    check               check and clean the gmvault-db disk database.
    export              Export the gmvault-db database to another format.

a) Get help for each of the individual commands

#>  gmvault sync -h
#>  gmvault restore --help
#>  gmvault check -h
#>  gmvault export -h

FAQ
Q
I want to restore all of the emails with a defined label, what will do?
A
Runt the following command,
# gmvault restore --apply-label "test" -d ~/gmvault-db examplelinux@gmail.com
Q
I need to sync or backup the mails in my gmail account. How to do this process in my Linux machine?
A
There is a tool which could help you to the exact like to take backup or to sync the gmail account.... The tool name is GmVault.
Q
Purpose of using the GMVAULT?
A
Gmvault is mainly used to take backup and restore Gmail accounts emails and chats. It synchronises the emails quickly and automatically adds the new mails received to your account.
Q
Is there any Alternative tool for Gmvault?
A
MailStore, Backupify, Horcrux, Piler, Got Your Back, and much more.
Q
How to quick restore option will only the sync last 2 months mail of your Gmail account?
A
# gmvault restore --type quick -d ~/gmvault-db examplelinux@gmail.com