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: backup gmail with labels, getmail, getmail for gmail imap, gmail, gmail backup, gmail backup on fedora, gmail backup on linux, imap, using getmail to backup gmail
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home