{"id":19261,"date":"2016-08-09T06:21:46","date_gmt":"2016-08-08T22:21:46","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/25793\/2016\/08\/09\/grive-%e7%9a%84%e4%bd%bf%e7%94%a8%e5%8f%83%e6%95%b8\/"},"modified":"2016-08-09T06:21:46","modified_gmt":"2016-08-08T22:21:46","slug":"grive-%e7%9a%84%e4%bd%bf%e7%94%a8%e5%8f%83%e6%95%b8","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/25793\/2016\/08\/09\/grive-%e7%9a%84%e4%bd%bf%e7%94%a8%e5%8f%83%e6%95%b8\/","title":{"rendered":"grive \u7684\u4f7f\u7528\u53c3\u6578"},"content":{"rendered":"<p>grive \u7a0b\u5f0f\u8def\u5f91<br \/>$ <span style=\"color: #ff0000;\">which grive<\/span><br \/><span style=\"color: #0000ff;\">\/usr\/local\/bin\/grive<\/span><\/p>\n<p>grive \u4f7f\u7528\u53c3\u6578<br \/>$ <span style=\"color: #ff0000;\">\/usr\/local\/bin\/grive &#8211;help<\/span><br \/><span style=\"color: #0000ff;\">Grive options:<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 -h [ &#8211;help ]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Produce help message<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 -v [ &#8211;version ]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Display Grive version<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 -a [ &#8211;auth ]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Request authorization token<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 -p [ &#8211;path ] arg\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Root directory to sync<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 -s [ &#8211;dir ] arg\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Single subdirectory to sync (remembered for next<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 runs)<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 -V [ &#8211;verbose ]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Verbose mode. Enable more messages than normal.<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 &#8211;log-http arg\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Log all HTTP responses in this file for<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 debugging.<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 &#8211;new-rev\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Create new revisions in server for updated files.<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 -d [ &#8211;debug ]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Enable debug level messages. Implies -v.<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 -l [ &#8211;log ] arg\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Set log output filename.<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 -f [ &#8211;force ]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Force grive to always download a file from Google<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Drive instead of uploading it.<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 -u [ &#8211;upload-only ]\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Do not download anything from Google Drive, only<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 upload local changes<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 -n [ &#8211;no-remote-new ]\u00a0\u00a0\u00a0\u00a0\u00a0 Download only files that are changed in Google<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Drive and already exist locally<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 &#8211;dry-run\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Only detect which files need to be<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 uploaded\/downloaded, without actually performing<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 them.<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 &#8211;ignore arg\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Perl RegExp to ignore files (matched against<\/span><br \/><span style=\"color: #0000ff;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 relative paths, remembered for next runs).<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 -U [ &#8211;upload-speed ] arg\u00a0\u00a0 Limit upload speed in kbytes per second<\/span><br \/><span style=\"color: #0000ff;\">\u00a0 -D [ &#8211;download-speed ] arg Limit download speed in kbytes per second<\/span>[@more@]<span style=\"color: #0000ff;\">-h<\/span> \u5217\u51fa\u53c3\u6578\u8aaa\u660e<\/p>\n<p><span style=\"color: #0000ff;\">-v<\/span> \u5217\u51fa grive \u7248\u672c<br \/>$ <span style=\"color: #ff0000;\">\/usr\/local\/bin\/grive -v<\/span><br \/><span style=\"color: #0000ff;\">grive version 0.5.1-dev Jun 30 2016 13:33:47<\/span><\/p>\n<p><span style=\"color: #0000ff;\">-a<\/span> \u53d6\u5f97\u6388\u6b0a\u78bc<br \/>$ <span style=\"color: #ff0000;\">\/usr\/local\/bin\/grive -a<\/span><\/p>\n<p><span style=\"color: #0000ff;\">-p<\/span> \u8981\u540c\u6b65\u7684\u6839\u76ee\u9304\uff0c\u540c\u6b65\u5230 Google Drive \u5f8c\uff0c\u5448\u73fe\u7684\u5c31\u662f <span style=\"color: #0000ff;\">\/home\/t850008\/Google<\/span> \u76ee\u9304\u4e0b\u7684\u6a94\u6848\u53ca\u76ee\u9304<br \/>$ <span style=\"color: #ff0000;\">\/usr\/local\/bin\/grive -p \/home\/t850008\/Google<\/span><\/p>\n<p><span style=\"color: #0000ff;\">-s<\/span> \u55ae\u4e00\u5b50\u76ee\u9304\u540c\u6b65<br \/>$ <span style=\"color: #ff0000;\">\/usr\/local\/bin\/grive -s \/home\/t850008\/Google\/123<\/span><\/p>\n<p><span style=\"color: #0000ff;\">-V<\/span> \u8a73\u7d30\u6a21\u5f0f\uff0c\u555f\u7528\u6bd4\u6b63\u5e38\u66f4\u591a\u7684\u8a0a\u606f<br \/>$ <span style=\"color: #ff0000;\">\/usr\/local\/bin\/grive -p \/home\/t850008\/Google -V<\/span><br \/><span style=\"color: #0000ff;\">config file name &#8220;\/home\/t850008\/Google\/.grive&#8221;<\/span><br \/><span style=\"color: #0000ff;\">Reading local directories<\/span><br \/><span style=\"color: #0000ff;\">file .grive_state is ignored by grive<\/span><br \/><span style=\"color: #0000ff;\">file .grive is ignored by grive<\/span><br \/><span style=\"color: #0000ff;\">Reading remote server file list<\/span><br \/><span style=\"color: #0000ff;\">file &#8220;\/home\/t850008\/Google\/\u683c\u5f0f\u5de5\u5ee0 format factory 3.8.0.0 \u4e2d\u6587\u514d\u5b89\u88dd\u7248.exe&#8221; is already in sync<\/span><br \/><span style=\"color: #0000ff;\">Synchronizing files<\/span><br \/><span style=\"color: #0000ff;\">sync &#8220;\/home\/t850008\/Google&#8221; already in sync<\/span><br \/><span style=\"color: #0000ff;\">sync &#8220;\/home\/t850008\/Google\/pCloud_Windows_3.2.4.exe&#8221; deleted in remote. deleting local<\/span><br \/><span style=\"color: #0000ff;\">sync &#8220;\/home\/t850008\/Google\/\u683c\u5f0f\u5de5\u5ee0 format factory 3.8.0.0 \u4e2d\u6587\u514d\u5b89\u88dd\u7248.exe&#8221; already in sync<\/span><br \/><span style=\"color: #0000ff;\">change stamp is set to 14<\/span><br \/><span style=\"color: #0000ff;\">Finished!<\/span><\/p>\n<p><span style=\"color: #0000ff;\">-l<\/span> \u8a2d\u5b9a\u8f38\u5165\u7684 log \u6a94\u7684\u6a94\u6848\u540d\u7a31<\/p>\n<p><span style=\"color: #0000ff;\">-f<\/span> \u5f37\u5236<br \/>$ <span style=\"color: #ff0000;\">\/usr\/local\/bin\/grive -p \/home\/t850008\/Google -f<\/span><\/p>\n<p><span style=\"color: #0000ff;\">-u<\/span> \u4e0d\u5f9e Google Drive \u4e0b\u8f09\u6a94\u6848\uff0c \u53ea\u4e0a\u50b3\u672c\u5730\u7aef\u6709\u6539\u8b8a\u7684\u6a94\u6848<br \/>$ <span style=\"color: #ff0000;\">\/usr\/local\/bin\/grive -p \/home\/t850008\/Google -u<\/span><\/p>\n<p><span style=\"color: #0000ff;\">-n<\/span> \u53ea\u4e0b\u8f09 Google Drive \u6709\u6539\u8b8a\u4e14\u5df2\u5b58\u5728\u672c\u5730\u7aef\u7684\u6a94\u6848\uff0c\u4e5f\u6703\u4e0a\u50b3\u672c\u5730\u7aef\u7684\u6a94\u6848\u5230 Google Drive<br \/>$ <span style=\"color: #ff0000;\">\/usr\/local\/bin\/grive -p \/home\/t850008\/Google -n<\/span><\/p>\n<p><span style=\"color: #0000ff;\">&#8211;dry-run<\/span> \u53ea\u5075\u6e2c\u54ea\u4e9b\u6a94\u6848\u8981\u8655\u7406\uff0c\u4e26\u4e0d\u5be6\u969b\u505a\u6a94\u6848\u7684\u4e0a\u50b3\u6216\u4e0b\u8f09<br \/>$ <span style=\"color: #ff0000;\">\/usr\/local\/bin\/grive -p \/home\/t850008\/Google &#8211;dry-run<\/span><\/p>\n<p><span style=\"color: #0000ff;\">&#8211;ignore<\/span> \u4f7f\u7528 Perl \u5e38\u898f\u8868\u793a\u5f0f\u4f86\u904e\u6ffe\u4e00\u4e9b\u4e0d\u8655\u7406\u7684\u76ee\u9304(\u91dd\u5c0d\u76f8\u5c0d\u61c9\u76ee\u9304\u8655\u7406)<\/p>\n<p><span style=\"color: #0000ff;\">-U<\/span> \u9650\u5236\u4e0a\u50b3\u7684\u901f\u5ea6\u00a0 kbytes per second<br \/><span style=\"color: #0000ff;\">-D<\/span> \u9650\u5236\u4e0b\u8f09\u7684\u901f\u5ea6\u00a0 kbytes per second<\/p>\n","protected":false},"excerpt":{"rendered":"<p>grive \u7a0b\u5f0f\u8def\u5f91$ which grive\/usr\/local\/bin\/grive grive \u4f7f\u7528\u53c3\u6578$ &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/2blog.ilc.edu.tw\/25793\/2016\/08\/09\/grive-%e7%9a%84%e4%bd%bf%e7%94%a8%e5%8f%83%e6%95%b8\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008grive \u7684\u4f7f\u7528\u53c3\u6578\u3009<\/span><\/a><\/p>\n","protected":false},"author":55,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[103],"tags":[],"class_list":["post-19261","post","type-post","status-publish","format-standard","hentry","category-c-98617"],"meta_key":{"_pingme":["1"],"_encloseme":["1"],"lt_post_id":["649021"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19261"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/comments?post=19261"}],"version-history":[{"count":0,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/posts\/19261\/revisions"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/media?parent=19261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/categories?post=19261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/25793\/wp-json\/wp\/v2\/tags?post=19261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}