{"id":273,"date":"2015-07-30T09:42:28","date_gmt":"2015-07-30T09:42:28","guid":{"rendered":"http:\/\/www.howtolearnlinux.com\/?p=273"},"modified":"2019-01-26T03:40:55","modified_gmt":"2019-01-26T03:40:55","slug":"how-to-sync-a-folder-in-ubuntu-14-04-with-google-drive","status":"publish","type":"post","link":"http:\/\/shijuvarghese.com\/?p=273","title":{"rendered":"How to sync a folder in Ubuntu 14.04 with Google Drive"},"content":{"rendered":"<p>Google drive is a free cloud storage provided by Google where you can store files accessible from any where in the world as long as you have an internet connection.<\/p>\n<p>Google also provides Google Drive syncing tool that can be used to sync the contents of Google Drive with a local folder residing in your local computer. Though this tool is offocially available for Windows PC, none is available for Linux hosts.<\/p>\n<p>As a work around there are few third part tools available that does the job.<\/p>\n<p>GRIVE is such a tool that can be installed on various Linux Operating Systems.<\/p>\n<p>In this post we will see how we can install grive tool in an Ubuntu 14.04 desktop host.<\/p>\n<ul>\n<li>Open a terminal window and login as root<\/li>\n<li><strong>sudo add-apt-repository ppa:thefanclub\/grive-tools<\/strong><\/li>\n<li><strong>sudo apt-get update<\/strong><\/li>\n<li><strong>sudo apt-get install grive-tools<\/strong><\/li>\n<\/ul>\n<p><em>If you get dependency errors please solve it. If you get an error &#8220;grive-tools : Depends: grive (&gt;= 0.3) but 0.2.0-1.1 is to be installed&#8221;, you may have to uninstall the existing version of Grive package, and install a Grive package &gt;=0.3<\/em><\/p>\n<p>Grive package can be found in:\u00a0 http:\/\/www.ubuntuupdates.org\/package\/webupd8\/trusty\/main\/base\/grive<\/p>\n<ul>\n<li><strong>mkdir \/home\/Grive<\/strong><\/li>\n<li><strong>cd \/home\/Grive\/<\/strong><\/li>\n<li><strong>grive -a<\/strong><\/li>\n<li>You will get a URL now.<\/li>\n<li>Post the URL in a browser where you have kept the desired google drive opened.<\/li>\n<li>You may be propmpted to answer some questions<\/li>\n<li>At the end of the process you will get a string of characters you will have to copy, and paste it in the terminal window<\/li>\n<\/ul>\n<p>You may see some output such as :<\/p>\n<ul>\n<li><em>Reading local directories<\/em><br \/>\n<em>Synchronizing folders<\/em><br \/>\n<em>Reading remote server file list<\/em><br \/>\n<em>Synchronizing files<\/em><br \/>\n<em>sync &#8220;.\/temmpp&#8221; created in remote. creating local<\/em><br \/>\n<em>sync &#8220;.\/How to get started with Drive&#8221; created in remote. creating local<\/em><br \/>\n<em>Finished!<\/em><\/li>\n<\/ul>\n<p>If you do not get any error, then you should be fine<\/p>\n<p>Verify if you can see the files in the folder by running the following command:<\/p>\n<ul>\n<li><strong>ls -ltrA<\/strong><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Google drive is a free cloud storage provided by Google where you can store files accessible from any where in the world as long as <a class=\"mh-excerpt-more\" href=\"http:\/\/shijuvarghese.com\/?p=273\" title=\"How to sync a folder in Ubuntu 14.04 with Google Drive\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":277,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=273"}],"version-history":[{"count":5,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/273\/revisions"}],"predecessor-version":[{"id":280,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/273\/revisions\/280"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/media\/277"}],"wp:attachment":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}