My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://techienote.com and update your bookmarks.

Tech Resources

Tuesday, July 13, 2010

Gmail backup


Most of the time user use gmail to save their important data. But they never care to take backup. What you will do in one of thoes downtimes of gmail servers? What if you wrongly delete your important emails? To prevent such incident from happening, you might want to backup your emails to your system.
Here is the script to backup your gmail data with labels in mbox format. It use getmail to fetch mails from gmail. You can also use it for incremental backup.

http://gmail-backup.sourceforge.net/

You need to install getmail on your machine to run the script
#yum install getmail

Download & run the script
#cd ~
#wget http://downloads.sourceforge.net/project/gmail-backup/gmail-backup.tar.gz?use_mirror=space&23393821
#tar zxvf gmail-backup.tar.gz
#cd gmail-backup
#chmod +x gmail-backup.sh newmail.sh allmail.sh
#sh gmail-backup.sh

It will ask for your emailid, password and the folder's name you want to backup.

To start backup (in case of all emails)
#cd ~/gmail-backup/
#sh allmail.sh

To start increamental backup
#cd ~/gmail-backup/
#sh newmail.sh

By default it will store all emails in mbox format at ~/gmail folder.

Labels: , , , , , , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home