rclone_pcloud.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="description" content="Rclone docs for pCloud">
  8. <meta name="author" content="Nick Craig-Wood">
  9. <link rel="shortcut icon" type="image/png" href="/img/rclone-16x16.png"/>
  10. <script>
  11. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  12. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  13. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  14. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  15. ga('create', 'UA-51081799-1', 'rclone.org');
  16. ga('send', 'pageview');
  17. </script>
  18. <title>pCloud</title>
  19. <link rel="canonical" href="https://rclone.org/pcloud/">
  20. <link href="/css/bootstrap.css" rel="stylesheet">
  21. <link href="/css/font-awesome.css" rel="stylesheet">
  22. <link href="/css/custom.css" rel="stylesheet">
  23. </head>
  24. <body>
  25. <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
  26. <div class="container">
  27. <div class="navbar-header">
  28. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
  29. <span class="sr-only">Toggle Navigation</span>
  30. <span class="icon-bar"></span>
  31. <span class="icon-bar"></span>
  32. <span class="icon-bar"></span>
  33. </button>
  34. <a class="navbar-brand" href="https://rclone.org"><i class="fa fa-home"></i> rclone - rsync for cloud storage</a>
  35. </div>
  36. <div class="collapse navbar-collapse navbar-ex1-collapse">
  37. <ul class="nav navbar-nav">
  38. <li><a href="/downloads/"><i class="fa fa-cloud-download"></i> Downloads</a></li>
  39. <li class="dropdown">
  40. <a href="#" class="dropdown-toggle" data-toggle="dropdown"><b class="caret"></b> Docs</a>
  41. <ul class="dropdown-menu pre-scrollable">
  42. <li><a href="/install/"><i class="fa fa-book"></i> Installation</a></li>
  43. <li><a href="/docs/"><i class="fa fa-book"></i> Usage</a></li>
  44. <li><a href="/filtering/"><i class="fa fa-book"></i> Filtering</a></li>
  45. <li><a href="/rc/"><i class="fa fa-book"></i> Remote Control</a></li>
  46. <li><a href="/changelog/"><i class="fa fa-book"></i> Changelog</a></li>
  47. <li><a href="/bugs/"><i class="fa fa-book"></i> Bugs</a></li>
  48. <li><a href="/faq/"><i class="fa fa-book"></i> FAQ</a></li>
  49. <li><a href="/licence/"><i class="fa fa-book"></i> Licence</a></li>
  50. <li><a href="/authors/"><i class="fa fa-book"></i> Authors</a></li>
  51. <li><a href="/donate/"><i class="fa fa-heart"></i> Donate</a></li>
  52. <li><a href="/privacy/"><i class="fa fa-book"></i> Privacy Policy</a></li>
  53. </ul>
  54. </li>
  55. <li class="dropdown">
  56. <a href="#" class="dropdown-toggle" data-toggle="dropdown"><b class="caret"></b> Commands</a>
  57. <ul class="dropdown-menu pre-scrollable">
  58. <li><a href="/commands/rclone_config/"><i class="fa fa-book"></i> rclone config</a></li>
  59. <li><a href="/commands/rclone_copy/"><i class="fa fa-book"></i> rclone copy</a></li>
  60. <li><a href="/commands/rclone_sync/"><i class="fa fa-book"></i> rclone sync</a></li>
  61. <li><a href="/commands/rclone_move/"><i class="fa fa-book"></i> rclone move</a></li>
  62. <li><a href="/commands/rclone_purge/"><i class="fa fa-book"></i> rclone purge</a></li>
  63. <li><a href="/commands/rclone_mkdir/"><i class="fa fa-book"></i> rclone mkdir</a></li>
  64. <li><a href="/commands/rclone_rmdir/"><i class="fa fa-book"></i> rclone rmdir</a></li>
  65. <li><a href="/commands/rclone_check/"><i class="fa fa-book"></i> rclone check</a></li>
  66. <li><a href="/commands/rclone_ls/"><i class="fa fa-book"></i> rclone ls</a></li>
  67. <li><a href="/commands/rclone_lsd/"><i class="fa fa-book"></i> rclone lsd</a></li>
  68. <li><a href="/commands/rclone_delete/"><i class="fa fa-book"></i> rclone delete</a></li>
  69. <li><a href="/commands/rclone_size/"><i class="fa fa-book"></i> rclone size</a></li>
  70. <li><a href="/commands/rclone_mount/"><i class="fa fa-book"></i> rclone mount</a></li>
  71. <li><a href="/commands/rclone_ncdu/"><i class="fa fa-book"></i> rclone ncdu</a></li>
  72. <li><a href="/commands/rclone_cat/"><i class="fa fa-book"></i> rclone cat</a></li>
  73. <li><a href="/commands/rclone_rcat/"><i class="fa fa-book"></i> rclone rcat</a></li>
  74. <li><a href="/commands/"><i class="fa fa-book"></i> ...and the rest</a></li>
  75. </ul>
  76. </li>
  77. <li class="dropdown">
  78. <a href="#" class="dropdown-toggle" data-toggle="dropdown"><b class="caret"></b> Storage Systems</a>
  79. <ul class="dropdown-menu pre-scrollable">
  80. <li><a href="/overview/"><i class="fa fa-archive"></i> Overview</a></li>
  81. <li><a href="/amazonclouddrive/"><i class="fa fa-amazon"></i> Amazon Drive</a></li>
  82. <li><a href="/s3/"><i class="fa fa-amazon"></i> Amazon S3</a></li>
  83. <li><a href="/b2/"><i class="fa fa-fire"></i> Backblaze B2</a></li>
  84. <li><a href="/box/"><i class="fa fa-archive"></i> Box</a></li>
  85. <li><a href="/cache/"><i class="fa fa-archive"></i> Cache</a></li>
  86. <li><a href="/crypt/"><i class="fa fa-lock"></i> Crypt (encrypts the others)</a></li>
  87. <li><a href="/dropbox/"><i class="fa fa-dropbox"></i> Dropbox</a></li>
  88. <li><a href="/ftp/"><i class="fa fa-file"></i> FTP</a></li>
  89. <li><a href="/googlecloudstorage/"><i class="fa fa-google"></i> Google Cloud Storage</a></li>
  90. <li><a href="/drive/"><i class="fa fa-google"></i> Google Drive</a></li>
  91. <li><a href="/http/"><i class="fa fa-globe"></i> HTTP</a></li>
  92. <li><a href="/hubic/"><i class="fa fa-space-shuttle"></i> Hubic</a></li>
  93. <li><a href="/jottacloud/"><i class="fa fa-cloud"></i> Jottacloud</a></li>
  94. <li><a href="/mega/"><i class="fa fa-archive"></i> Mega</a></li>
  95. <li><a href="/azureblob/"><i class="fa fa-windows"></i> Microsoft Azure Blob Storage</a></li>
  96. <li><a href="/onedrive/"><i class="fa fa-windows"></i> Microsoft OneDrive</a></li>
  97. <li><a href="/opendrive/"><i class="fa fa-space-shuttle"></i> OpenDrive</a></li>
  98. <li><a href="/qingstor/"><i class="fa fa-hdd-o"></i> QingStor</a></li>
  99. <li><a href="/swift/"><i class="fa fa-space-shuttle"></i> Openstack Swift</a></li>
  100. <li><a href="/pcloud/"><i class="fa fa-cloud"></i> pCloud</a></li>
  101. <li><a href="/sftp/"><i class="fa fa-server"></i> SFTP</a></li>
  102. <li><a href="/union/"><i class="fa fa-link"></i> Union (merge backends)</a></li>
  103. <li><a href="/webdav/"><i class="fa fa-server"></i> WebDAV</a></li>
  104. <li><a href="/yandex/"><i class="fa fa-space-shuttle"></i> Yandex Disk</a></li>
  105. <li><a href="/local/"><i class="fa fa-file"></i> The local filesystem</a></li>
  106. </ul>
  107. </li>
  108. <li><a href="/contact/"><i class="fa fa-envelope"></i> Contact</a></li>
  109. </ul>
  110. </div>
  111. </div>
  112. </nav>
  113. <div class="container">
  114. <div class="row">
  115. <div class="col-md-10">
  116. <h2 id="i-class-fa-fa-cloud-i-pcloud"><i class="fa fa-cloud"></i> pCloud</h2>
  117. <p>Paths are specified as <code>remote:path</code></p>
  118. <p>Paths may be as deep as required, eg <code>remote:directory/subdirectory</code>.</p>
  119. <p>The initial setup for pCloud involves getting a token from pCloud which you
  120. need to do in your browser. <code>rclone config</code> walks you through it.</p>
  121. <p>Here is an example of how to make a remote called <code>remote</code>. First run:</p>
  122. <pre><code> rclone config
  123. </code></pre>
  124. <p>This will guide you through an interactive setup process:</p>
  125. <pre><code>No remotes found - make a new one
  126. n) New remote
  127. s) Set configuration password
  128. q) Quit config
  129. n/s/q&gt; n
  130. name&gt; remote
  131. Type of storage to configure.
  132. Choose a number from below, or type in your own value
  133. 1 / Amazon Drive
  134. \ &quot;amazon cloud drive&quot;
  135. 2 / Amazon S3 (also Dreamhost, Ceph, Minio)
  136. \ &quot;s3&quot;
  137. 3 / Backblaze B2
  138. \ &quot;b2&quot;
  139. 4 / Box
  140. \ &quot;box&quot;
  141. 5 / Dropbox
  142. \ &quot;dropbox&quot;
  143. 6 / Encrypt/Decrypt a remote
  144. \ &quot;crypt&quot;
  145. 7 / FTP Connection
  146. \ &quot;ftp&quot;
  147. 8 / Google Cloud Storage (this is not Google Drive)
  148. \ &quot;google cloud storage&quot;
  149. 9 / Google Drive
  150. \ &quot;drive&quot;
  151. 10 / Hubic
  152. \ &quot;hubic&quot;
  153. 11 / Local Disk
  154. \ &quot;local&quot;
  155. 12 / Microsoft Azure Blob Storage
  156. \ &quot;azureblob&quot;
  157. 13 / Microsoft OneDrive
  158. \ &quot;onedrive&quot;
  159. 14 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
  160. \ &quot;swift&quot;
  161. 15 / Pcloud
  162. \ &quot;pcloud&quot;
  163. 16 / QingCloud Object Storage
  164. \ &quot;qingstor&quot;
  165. 17 / SSH/SFTP Connection
  166. \ &quot;sftp&quot;
  167. 18 / Yandex Disk
  168. \ &quot;yandex&quot;
  169. 19 / http Connection
  170. \ &quot;http&quot;
  171. Storage&gt; pcloud
  172. Pcloud App Client Id - leave blank normally.
  173. client_id&gt;
  174. Pcloud App Client Secret - leave blank normally.
  175. client_secret&gt;
  176. Remote config
  177. Use auto config?
  178. * Say Y if not sure
  179. * Say N if you are working on a remote or headless machine
  180. y) Yes
  181. n) No
  182. y/n&gt; y
  183. If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
  184. Log in and authorize rclone for access
  185. Waiting for code...
  186. Got code
  187. --------------------
  188. [remote]
  189. client_id =
  190. client_secret =
  191. token = {&quot;access_token&quot;:&quot;XXX&quot;,&quot;token_type&quot;:&quot;bearer&quot;,&quot;expiry&quot;:&quot;0001-01-01T00:00:00Z&quot;}
  192. --------------------
  193. y) Yes this is OK
  194. e) Edit this remote
  195. d) Delete this remote
  196. y/e/d&gt; y
  197. </code></pre>
  198. <p>See the <a href="/remote_setup/">remote setup docs</a> for how to set it up on a
  199. machine with no Internet browser available.</p>
  200. <p>Note that rclone runs a webserver on your local machine to collect the
  201. token as returned from pCloud. This only runs from the moment it opens
  202. your browser to the moment you get back the verification code. This
  203. is on <code>http://127.0.0.1:53682/</code> and this it may require you to unblock
  204. it temporarily if you are running a host firewall.</p>
  205. <p>Once configured you can then use <code>rclone</code> like this,</p>
  206. <p>List directories in top level of your pCloud</p>
  207. <pre><code>rclone lsd remote:
  208. </code></pre>
  209. <p>List all the files in your pCloud</p>
  210. <pre><code>rclone ls remote:
  211. </code></pre>
  212. <p>To copy a local directory to an pCloud directory called backup</p>
  213. <pre><code>rclone copy /home/source remote:backup
  214. </code></pre>
  215. <h3 id="modified-time-and-hashes">Modified time and hashes</h3>
  216. <p>pCloud allows modification times to be set on objects accurate to 1
  217. second. These will be used to detect whether objects need syncing or
  218. not. In order to set a Modification time pCloud requires the object
  219. be re-uploaded.</p>
  220. <p>pCloud supports MD5 and SHA1 type hashes, so you can use the
  221. <code>--checksum</code> flag.</p>
  222. <h3 id="deleting-files">Deleting files</h3>
  223. <p>Deleted files will be moved to the trash. Your subscription level
  224. will determine how long items stay in the trash. <code>rclone cleanup</code> can
  225. be used to empty the trash.</p>
  226. <!--- autogenerated options start - DO NOT EDIT, instead edit fs.RegInfo in backend/pcloud/pcloud.go then run make backenddocs -->
  227. <h3 id="standard-options">Standard Options</h3>
  228. <p>Here are the standard options specific to pcloud (Pcloud).</p>
  229. <h4 id="pcloud-client-id">--pcloud-client-id</h4>
  230. <p>Pcloud App Client Id
  231. Leave blank normally.</p>
  232. <ul>
  233. <li>Config: client_id</li>
  234. <li>Env Var: RCLONE_PCLOUD_CLIENT_ID</li>
  235. <li>Type: string</li>
  236. <li>Default: &ldquo;&rdquo;</li>
  237. </ul>
  238. <h4 id="pcloud-client-secret">--pcloud-client-secret</h4>
  239. <p>Pcloud App Client Secret
  240. Leave blank normally.</p>
  241. <ul>
  242. <li>Config: client_secret</li>
  243. <li>Env Var: RCLONE_PCLOUD_CLIENT_SECRET</li>
  244. <li>Type: string</li>
  245. <li>Default: &ldquo;&rdquo;</li>
  246. </ul>
  247. <!--- autogenerated options stop -->
  248. </div>
  249. <div class="col-md-2">
  250. <div class="panel panel-default">
  251. <div class="panel-heading" style="padding: 2px 10px;">
  252. <h4>Share and Enjoy.</h4>
  253. </div>
  254. <div class="panel-body">
  255. <a href="//twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="njcw">Tweet</a>
  256. <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
  257. <br><g:plusone size="medium"></g:plusone>
  258. <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
  259. <br><iframe src="//ghbtns.com/github-btn.html?user=ncw&repo=rclone&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110px" height="20"></iframe>
  260. <br><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Frclone.org%2F&amp;width=110&amp;layout=button_count&amp;action=like&amp;show_faces=true&amp;share=true&amp;height=21&amp;appId=232073720158744" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:200px; height:21px;" allowTransparency="true"></iframe>
  261. </div>
  262. </div>
  263. <div class="panel panel-default">
  264. <div class="panel-heading" style="padding: 2px 15px;">
  265. <h4>Links.</h4>
  266. </div>
  267. <div class="panel-body">
  268. <p>
  269. <i class="fa fa-comments" aria-hidden="true"></i> <a href="https://forum.rclone.org">Rclone forum.</a><br />
  270. <i class="fa fa-github" aria-hidden="true"></i> <a href="https://github.com/ncw/rclone">Github project.</a><br />
  271. <i class="fa fa-google-plus" aria-hidden="true"></i> <a href="https://google.com/+RcloneOrg" rel="publisher">Google+ page.</a><br />
  272. <i class="fa fa-slack" aria-hidden="true"></i> <a href="https://slack-invite.rclone.org/">Rclone slack chat.</a><br />
  273. <i class="fa fa-book" aria-hidden="true"></i> <a href="https://github.com/ncw/rclone/wiki">Rclone Wiki.</a><br />
  274. <i class="fa fa-heart" aria-hidden="true"></i> <a href="/donate/">Donate.</a><br />
  275. <i class="fa fa-twitter" aria-hidden="true"></i> <a href="https://twitter.com/njcw">@njcw</a>
  276. </p>
  277. </div>
  278. </div>
  279. </div>
  280. </div>
  281. <footer>
  282. <div class="row">
  283. <hr>
  284. <div class="col-sm-12">
  285. <p>&copy; <a href="https://www.craig-wood.com/nick/">Nick Craig-Wood</a> 2014-2017<br>
  286. Website hosted on a <a href="https://www.memset.com/dedicated-servers/vps/"><span style="font-weight: bold; font-family: arial black, arial, sans-serif; font-style: italic;">MEMSET CLOUD VPS</span></a>,
  287. uploaded with <a href="https://rclone.org">rclone</a>
  288. and built with <a href="https://github.com/spf13/hugo">Hugo</a></p>
  289. </div>
  290. </div>
  291. </footer>
  292. </div>
  293. <script src="/js/jquery.js"></script>
  294. <script src="/js/bootstrap.js"></script>
  295. <script src="/js/custom.js"></script>
  296. </body>
  297. </html>