<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5502336710138830718</id><updated>2011-04-21T17:47:08.043-07:00</updated><title type='text'>Backup gmail and password protect it</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gmailbackup.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5502336710138830718/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://gmailbackup.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>razorxpress</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5502336710138830718.post-7612859269017083110</id><published>2009-01-05T15:50:00.000-08:00</published><updated>2009-01-05T15:53:43.551-08:00</updated><title type='text'>Backup gmail and password protect it</title><content type='html'>Password Protect Files&lt;br /&gt;---------------------&lt;br /&gt;Confused with different programs which asks you to make private and public keys (e.g gnu-pg, pgp). Even worse, if you don't save the public and private keys generated by those programs and happen to reinstall the latest version of Linux which wiped out your home directory. For a greater security using such tools might be a requirement but for simple purposes you can use openssl with cipher encryption.&lt;br /&gt;&lt;br /&gt;E.g You want to hide MyParty.jpg to iwillnottell.anything.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;$ openssl enc -aes-256-cbc -salt -in MyParty.jpg -out iwillnottell.anything&lt;br /&gt;enter aes-256-cbc encryption password:&lt;br /&gt;Verifying - enter aes-256-cbc encryption password:&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Once you enter the password and verify it you will get iwillnottell.anything. Now you can delete the original file MyParty.jpg. Later when you wan to retrive the file (You can even check it on another account to see if the password encryption program works at any installation):&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;$ openssl enc -d -aes-256-cbc -in iwillnottell.anything &gt; ThisWasMyParty.jpg&lt;br /&gt;enter aes-256-cbc decryption password:&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Now we could password protect any file (you must remember what your password was, else you will end entering a wrong password and make Linux will cry(beep) and loose your file). Now we are ready to encrypt our gmail backup too.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Backup Gmail&lt;br /&gt;------------&lt;br /&gt;&lt;br /&gt;Install getmail&lt;br /&gt;&lt;blockquote&gt;sudo apt-get install getmail4&lt;br /&gt;mkdir ~/gmail-archive&lt;br /&gt;touch ~/gmail-archive/gmail-backup.mbox&lt;br /&gt;mkdir ~/.getmail&lt;br /&gt;vi ~/.getmail/getmail.gmail&lt;br /&gt;[retriever]&lt;br /&gt;type = SimplePOP3SSLRetriever&lt;br /&gt;server = pop.gmail.com&lt;br /&gt;username = mymail@gmail.com&lt;br /&gt;password = whatwasmypassword&lt;br /&gt;&lt;br /&gt;[destination]&lt;br /&gt;type = Mboxrd&lt;br /&gt;path = ~/gmail-archive/gmail-backup.mbox&lt;br /&gt;&lt;br /&gt;[options]&lt;br /&gt;# print messages about each action (verbose = 2)&lt;br /&gt;# Other options:&lt;br /&gt;# 0 prints only warnings and errors&lt;br /&gt;# 1 prints messages about retrieving and deleting messages only&lt;br /&gt;verbose = 2&lt;br /&gt;message_log = ~/.getmail/gmail.log &lt;br /&gt;&lt;br /&gt;## Ends Here  ##&lt;br /&gt;################&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I don't have to tell you have to enter your username and password above at specified places.&lt;br /&gt;&lt;br /&gt;Enter this command to get your gmail to ~/gmail-archive/gmail-backup.mbox&lt;br /&gt;&lt;blockquote&gt;$ getmail -r ~/.getmail/getmail.gmal&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;We enabled the verbose option, so you will see all the mail being downloaded. Once the download completes. You can backup the mail using above technique. &lt;br /&gt;&lt;br /&gt;Read the mail&lt;br /&gt;-------------&lt;br /&gt;&lt;br /&gt;To read the mail, open evolution and use File-&gt;Import-&gt;Forward-&gt;Import a single file to browse and open gmail-backup.mbox to read all your mail from evolution.&lt;br /&gt;&lt;br /&gt;Enjoy ...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style='float:right; margin-left:10px;'&gt;&lt;br /&gt;&lt;br /&gt;&lt;script type='text/javascript'&gt;&lt;br /&gt;&lt;br /&gt;digg_url=&amp;quot;&lt;data:post.url/&gt;&amp;quot;;&lt;br /&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;&lt;script src='http://digg.com/tools/diggthis.js' type='text/javascript'&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;data:post.body/&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5502336710138830718-7612859269017083110?l=gmailbackup.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gmailbackup.blogspot.com/feeds/7612859269017083110/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gmailbackup.blogspot.com/2009/01/backup-gmail-and-password-protect-it.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5502336710138830718/posts/default/7612859269017083110'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5502336710138830718/posts/default/7612859269017083110'/><link rel='alternate' type='text/html' href='http://gmailbackup.blogspot.com/2009/01/backup-gmail-and-password-protect-it.html' title='Backup gmail and password protect it'/><author><name>razorxpress</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
