forked from rclone/rclone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MANUAL.html
17073 lines (15466 loc) · 898 KB
/
MANUAL.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<meta name="author" content="Nick Craig-Wood" />
<title>rclone(1) User Manual</title>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
</style>
</head>
<body>
<header>
<h1 class="title">rclone(1) User Manual</h1>
<p class="author">Nick Craig-Wood</p>
<p class="date">Oct 26, 2019</p>
</header>
<h1 id="rclone---rsync-for-cloud-storage">Rclone - rsync for cloud storage</h1>
<p>Rclone is a command line program to sync files and directories to and from:</p>
<ul>
<li>1Fichier</li>
<li>Alibaba Cloud (Aliyun) Object Storage System (OSS)</li>
<li>Amazon Drive (<a href="/amazonclouddrive/#status">See note</a>)</li>
<li>Amazon S3</li>
<li>Backblaze B2</li>
<li>Box</li>
<li>Ceph</li>
<li>Citrix ShareFile</li>
<li>C14</li>
<li>DigitalOcean Spaces</li>
<li>Dreamhost</li>
<li>Dropbox</li>
<li>FTP</li>
<li>Google Cloud Storage</li>
<li>Google Drive</li>
<li>Google Photos</li>
<li>HTTP</li>
<li>Hubic</li>
<li>Jottacloud</li>
<li>IBM COS S3</li>
<li>Koofr</li>
<li>Mail.ru Cloud</li>
<li>Memset Memstore</li>
<li>Mega</li>
<li>Microsoft Azure Blob Storage</li>
<li>Microsoft OneDrive</li>
<li>Minio</li>
<li>Nextcloud</li>
<li>OVH</li>
<li>OpenDrive</li>
<li>Openstack Swift</li>
<li>Oracle Cloud Storage</li>
<li>ownCloud</li>
<li>pCloud</li>
<li>premiumize.me</li>
<li>put.io</li>
<li>QingStor</li>
<li>Rackspace Cloud Files</li>
<li>rsync.net</li>
<li>Scaleway</li>
<li>SFTP</li>
<li>Wasabi</li>
<li>WebDAV</li>
<li>Yandex Disk</li>
<li>The local filesystem</li>
</ul>
<p>Features</p>
<ul>
<li>MD5/SHA1 hashes checked at all times for file integrity</li>
<li>Timestamps preserved on files</li>
<li>Partial syncs supported on a whole file basis</li>
<li><a href="https://rclone.org/commands/rclone_copy/">Copy</a> mode to just copy new/changed files</li>
<li><a href="https://rclone.org/commands/rclone_sync/">Sync</a> (one way) mode to make a directory identical</li>
<li><a href="https://rclone.org/commands/rclone_check/">Check</a> mode to check for file hash equality</li>
<li>Can sync to and from network, eg two different cloud accounts</li>
<li><a href="https://rclone.org/crypt/">Encryption</a> backend</li>
<li><a href="https://rclone.org/cache/">Cache</a> backend</li>
<li><a href="https://rclone.org/chunker/">Chunking</a> backend</li>
<li><a href="https://rclone.org/union/">Union</a> backend</li>
<li>Optional FUSE mount (<a href="https://rclone.org/commands/rclone_mount/">rclone mount</a>)</li>
<li>Multi-threaded downloads to local disk</li>
<li>Can <a href="https://rclone.org/commands/rclone_serve/">serve</a> local or remote files over <a href="https://rclone.org/commands/rclone_serve_http/">HTTP</a>/<a href="https://rclone.org/commands/rclone_serve_webdav/">WebDav</a>/<a href="https://rclone.org/commands/rclone_serve_ftp/">FTP</a>/<a href="https://rclone.org/commands/rclone_serve_sftp/">SFTP</a>/<a href="https://rclone.org/commands/rclone_serve_dlna/">dlna</a></li>
<li>Experimental <a href="https://rclone.org/gui/">Web based GUI</a></li>
</ul>
<p>Links</p>
<ul>
<li><a href="https://rclone.org/">Home page</a></li>
<li><a href="https://github.com/rclone/rclone">GitHub project page for source and bug tracker</a></li>
<li><a href="https://forum.rclone.org">Rclone Forum</a></li>
<li><a href="https://rclone.org/downloads/">Downloads</a></li>
</ul>
<h1 id="install">Install</h1>
<p>Rclone is a Go program and comes as a single binary file.</p>
<h2 id="quickstart">Quickstart</h2>
<ul>
<li><a href="https://rclone.org/downloads/">Download</a> the relevant binary.</li>
<li>Extract the <code>rclone</code> or <code>rclone.exe</code> binary from the archive</li>
<li>Run <code>rclone config</code> to setup. See <a href="https://rclone.org/docs/">rclone config docs</a> for more details.</li>
</ul>
<p>See below for some expanded Linux / macOS instructions.</p>
<p>See the <a href="https://rclone.org/docs/">Usage section</a> of the docs for how to use rclone, or run <code>rclone -h</code>.</p>
<h2 id="script-installation">Script installation</h2>
<p>To install rclone on Linux/macOS/BSD systems, run:</p>
<pre><code>curl https://rclone.org/install.sh | sudo bash</code></pre>
<p>For beta installation, run:</p>
<pre><code>curl https://rclone.org/install.sh | sudo bash -s beta</code></pre>
<p>Note that this script checks the version of rclone installed first and won’t re-download if not needed.</p>
<h2 id="linux-installation-from-precompiled-binary">Linux installation from precompiled binary</h2>
<p>Fetch and unpack</p>
<pre><code>curl -O https://downloads.rclone.org/rclone-current-linux-amd64.zip
unzip rclone-current-linux-amd64.zip
cd rclone-*-linux-amd64</code></pre>
<p>Copy binary file</p>
<pre><code>sudo cp rclone /usr/bin/
sudo chown root:root /usr/bin/rclone
sudo chmod 755 /usr/bin/rclone</code></pre>
<p>Install manpage</p>
<pre><code>sudo mkdir -p /usr/local/share/man/man1
sudo cp rclone.1 /usr/local/share/man/man1/
sudo mandb </code></pre>
<p>Run <code>rclone config</code> to setup. See <a href="https://rclone.org/docs/">rclone config docs</a> for more details.</p>
<pre><code>rclone config</code></pre>
<h2 id="macos-installation-from-precompiled-binary">macOS installation from precompiled binary</h2>
<p>Download the latest version of rclone.</p>
<pre><code>cd && curl -O https://downloads.rclone.org/rclone-current-osx-amd64.zip</code></pre>
<p>Unzip the download and cd to the extracted folder.</p>
<pre><code>unzip -a rclone-current-osx-amd64.zip && cd rclone-*-osx-amd64</code></pre>
<p>Move rclone to your $PATH. You will be prompted for your password.</p>
<pre><code>sudo mkdir -p /usr/local/bin
sudo mv rclone /usr/local/bin/</code></pre>
<p>(the <code>mkdir</code> command is safe to run, even if the directory already exists).</p>
<p>Remove the leftover files.</p>
<pre><code>cd .. && rm -rf rclone-*-osx-amd64 rclone-current-osx-amd64.zip</code></pre>
<p>Run <code>rclone config</code> to setup. See <a href="https://rclone.org/docs/">rclone config docs</a> for more details.</p>
<pre><code>rclone config</code></pre>
<h2 id="install-with-docker">Install with docker</h2>
<p>The rclone maintains a <a href="https://hub.docker.com/r/rclone/rclone">docker image for rclone</a>. These images are autobuilt by docker hub from the rclone source based on a minimal Alpine linux image.</p>
<p>The <code>:latest</code> tag will always point to the latest stable release. You can use the <code>:beta</code> tag to get the latest build from master. You can also use version tags, eg <code>:1.49.1</code>, <code>:1.49</code> or <code>:1</code>.</p>
<pre><code>$ docker pull rclone/rclone:latest
latest: Pulling from rclone/rclone
Digest: sha256:0e0ced72671989bb837fea8e88578b3fc48371aa45d209663683e24cfdaa0e11
...
$ docker run --rm rclone/rclone:latest version
rclone v1.49.1
- os/arch: linux/amd64
- go version: go1.12.9</code></pre>
<p>There are a few command line options to consider when starting an rclone Docker container from the rclone image.</p>
<ul>
<li><p>You need to mount the host rclone config dir at <code>/config/rclone</code> into the Docker container. Due to the fact that rclone updates tokens inside its config file, and that the update process involves a file rename, you need to mount the whole host rclone config dir, not just the single host rclone config file.</p></li>
<li><p>You need to mount a host data dir at <code>/data</code> into the Docker container.</p></li>
<li><p>By default, the rclone binary inside a Docker container runs with UID=0 (root). As a result, all files created in a run will have UID=0. If your config and data files reside on the host with a non-root UID:GID, you need to pass these on the container start command line.</p></li>
<li><p>It is possible to use <code>rclone mount</code> inside a userspace Docker container, and expose the resulting fuse mount to the host. The exact <code>docker run</code> options to do that might vary slightly between hosts. See, e.g. the discussion in this <a href="https://github.com/moby/moby/issues/9448">thread</a>.</p>
<p>You also need to mount the host <code>/etc/passwd</code> and <code>/etc/group</code> for fuse to work inside the container.</p></li>
</ul>
<p>Here are some commands tested on an Ubuntu 18.04.3 host:</p>
<pre><code># config on host at ~/.config/rclone/rclone.conf
# data on host at ~/data
# make sure the config is ok by listing the remotes
docker run --rm \
--volume ~/.config/rclone:/config/rclone \
--volume ~/data:/data:shared \
--user $(id -u):$(id -g) \
rclone/rclone \
listremotes
# perform mount inside Docker container, expose result to host
mkdir -p ~/data/mount
docker run --rm \
--volume ~/.config/rclone:/config/rclone \
--volume ~/data:/data:shared \
--user $(id -u):$(id -g) \
--volume /etc/passwd:/etc/passwd:ro --volume /etc/group:/etc/group:ro \
--device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined \
rclone/rclone \
mount dropbox:Photos /data/mount &
ls ~/data/mount
kill %1</code></pre>
<h2 id="install-from-source">Install from source</h2>
<p>Make sure you have at least <a href="https://golang.org/">Go</a> 1.7 installed. <a href="https://golang.org/dl/">Download go</a> if necessary. The latest release is recommended. Then</p>
<pre><code>git clone https://github.com/rclone/rclone.git
cd rclone
go build
./rclone version</code></pre>
<p>You can also build and install rclone in the <a href="https://github.com/golang/go/wiki/GOPATH">GOPATH</a> (which defaults to <code>~/go</code>) with:</p>
<pre><code>go get -u -v github.com/rclone/rclone</code></pre>
<p>and this will build the binary in <code>$GOPATH/bin</code> (<code>~/go/bin/rclone</code> by default) after downloading the source to <code>$GOPATH/src/github.com/rclone/rclone</code> (<code>~/go/src/github.com/rclone/rclone</code> by default).</p>
<h2 id="installation-with-ansible">Installation with Ansible</h2>
<p>This can be done with <a href="https://github.com/stefangweichinger/ansible-rclone">Stefan Weichinger’s ansible role</a>.</p>
<p>Instructions</p>
<ol type="1">
<li><code>git clone https://github.com/stefangweichinger/ansible-rclone.git</code> into your local roles-directory</li>
<li>add the role to the hosts you want rclone installed to:</li>
</ol>
<pre><code> - hosts: rclone-hosts
roles:
- rclone</code></pre>
<h2 id="configure">Configure</h2>
<p>First, you’ll need to configure rclone. As the object storage systems have quite complicated authentication these are kept in a config file. (See the <code>--config</code> entry for how to find the config file and choose its location.)</p>
<p>The easiest way to make the config is to run rclone with the config option:</p>
<pre><code>rclone config</code></pre>
<p>See the following for detailed instructions for</p>
<ul>
<li><a href="https://rclone.org/fichier/">1Fichier</a></li>
<li><a href="https://rclone.org/alias/">Alias</a></li>
<li><a href="https://rclone.org/amazonclouddrive/">Amazon Drive</a></li>
<li><a href="https://rclone.org/s3/">Amazon S3</a></li>
<li><a href="https://rclone.org/b2/">Backblaze B2</a></li>
<li><a href="https://rclone.org/box/">Box</a></li>
<li><a href="https://rclone.org/cache/">Cache</a></li>
<li><a href="https://rclone.org/chunker/">Chunker</a> - transparently splits large files for other remotes</li>
<li><a href="https://rclone.org/sharefile/">Citrix ShareFile</a></li>
<li><a href="https://rclone.org/crypt/">Crypt</a> - to encrypt other remotes</li>
<li><a href="/s3/#digitalocean-spaces">DigitalOcean Spaces</a></li>
<li><a href="https://rclone.org/dropbox/">Dropbox</a></li>
<li><a href="https://rclone.org/ftp/">FTP</a></li>
<li><a href="https://rclone.org/googlecloudstorage/">Google Cloud Storage</a></li>
<li><a href="https://rclone.org/drive/">Google Drive</a></li>
<li><a href="https://rclone.org/googlephotos/">Google Photos</a></li>
<li><a href="https://rclone.org/http/">HTTP</a></li>
<li><a href="https://rclone.org/hubic/">Hubic</a></li>
<li><a href="https://rclone.org/jottacloud/">Jottacloud</a></li>
<li><a href="https://rclone.org/koofr/">Koofr</a></li>
<li><a href="https://rclone.org/mailru/">Mail.ru Cloud</a></li>
<li><a href="https://rclone.org/mega/">Mega</a></li>
<li><a href="https://rclone.org/azureblob/">Microsoft Azure Blob Storage</a></li>
<li><a href="https://rclone.org/onedrive/">Microsoft OneDrive</a></li>
<li><a href="https://rclone.org/swift/">Openstack Swift / Rackspace Cloudfiles / Memset Memstore</a></li>
<li><a href="https://rclone.org/opendrive/">OpenDrive</a></li>
<li><a href="https://rclone.org/pcloud/">Pcloud</a></li>
<li><a href="https://rclone.org/premiumizeme/">premiumize.me</a></li>
<li><a href="https://rclone.org/putio/">put.io</a></li>
<li><a href="https://rclone.org/qingstor/">QingStor</a></li>
<li><a href="https://rclone.org/sftp/">SFTP</a></li>
<li><a href="https://rclone.org/union/">Union</a></li>
<li><a href="https://rclone.org/webdav/">WebDAV</a></li>
<li><a href="https://rclone.org/yandex/">Yandex Disk</a></li>
<li><a href="https://rclone.org/local/">The local filesystem</a></li>
</ul>
<h2 id="usage">Usage</h2>
<p>Rclone syncs a directory tree from one storage system to another.</p>
<p>Its syntax is like this</p>
<pre><code>Syntax: [options] subcommand <parameters> <parameters...></code></pre>
<p>Source and destination paths are specified by the name you gave the storage system in the config file then the sub path, eg “drive:myfolder” to look at “myfolder” in Google drive.</p>
<p>You can define as many storage paths as you like in the config file.</p>
<h2 id="subcommands">Subcommands</h2>
<p>rclone uses a system of subcommands. For example</p>
<pre><code>rclone ls remote:path # lists a remote
rclone copy /local/path remote:path # copies /local/path to the remote
rclone sync /local/path remote:path # syncs /local/path to the remote</code></pre>
<h2 id="rclone-config">rclone config</h2>
<p>Enter an interactive configuration session.</p>
<h3 id="synopsis">Synopsis</h3>
<p>Enter an interactive configuration session where you can setup new remotes and manage existing ones. You may also set or remove a password to protect your configuration.</p>
<pre><code>rclone config [flags]</code></pre>
<h3 id="options">Options</h3>
<pre><code> -h, --help help for config</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
<li><a href="https://rclone.org/commands/rclone_config_create/">rclone config create</a> - Create a new remote with name, type and options.</li>
<li><a href="https://rclone.org/commands/rclone_config_delete/">rclone config delete</a> - Delete an existing remote <name>.</li>
<li><a href="https://rclone.org/commands/rclone_config_disconnect/">rclone config disconnect</a> - Disconnects user from remote</li>
<li><a href="https://rclone.org/commands/rclone_config_dump/">rclone config dump</a> - Dump the config file as JSON.</li>
<li><a href="https://rclone.org/commands/rclone_config_edit/">rclone config edit</a> - Enter an interactive configuration session.</li>
<li><a href="https://rclone.org/commands/rclone_config_file/">rclone config file</a> - Show path of configuration file in use.</li>
<li><a href="https://rclone.org/commands/rclone_config_password/">rclone config password</a> - Update password in an existing remote.</li>
<li><a href="https://rclone.org/commands/rclone_config_providers/">rclone config providers</a> - List in JSON format all the providers and options.</li>
<li><a href="https://rclone.org/commands/rclone_config_reconnect/">rclone config reconnect</a> - Re-authenticates user with remote.</li>
<li><a href="https://rclone.org/commands/rclone_config_show/">rclone config show</a> - Print (decrypted) config file, or the config for a single remote.</li>
<li><a href="https://rclone.org/commands/rclone_config_update/">rclone config update</a> - Update options in an existing remote.</li>
<li><a href="https://rclone.org/commands/rclone_config_userinfo/">rclone config userinfo</a> - Prints info about logged in user of remote.</li>
</ul>
<h2 id="rclone-copy">rclone copy</h2>
<p>Copy files from source to dest, skipping already copied</p>
<h3 id="synopsis-1">Synopsis</h3>
<p>Copy the source to the destination. Doesn’t transfer unchanged files, testing by size and modification time or MD5SUM. Doesn’t delete files from the destination.</p>
<p>Note that it is always the contents of the directory that is synced, not the directory so when source:path is a directory, it’s the contents of source:path that are copied, not the directory name and contents.</p>
<p>If dest:path doesn’t exist, it is created and the source:path contents go there.</p>
<p>For example</p>
<pre><code>rclone copy source:sourcepath dest:destpath</code></pre>
<p>Let’s say there are two files in sourcepath</p>
<pre><code>sourcepath/one.txt
sourcepath/two.txt</code></pre>
<p>This copies them to</p>
<pre><code>destpath/one.txt
destpath/two.txt</code></pre>
<p>Not to</p>
<pre><code>destpath/sourcepath/one.txt
destpath/sourcepath/two.txt</code></pre>
<p>If you are familiar with <code>rsync</code>, rclone always works as if you had written a trailing / - meaning “copy the contents of this directory”. This applies to all commands and whether you are talking about the source or destination.</p>
<p>See the <a href="/docs/#no-traverse">–no-traverse</a> option for controlling whether rclone lists the destination directory or not. Supplying this option when copying a small number of files into a large destination can speed transfers up greatly.</p>
<p>For example, if you have many files in /path/to/src but only a few of them change every day, you can to copy all the files which have changed recently very efficiently like this:</p>
<pre><code>rclone copy --max-age 24h --no-traverse /path/to/src remote:</code></pre>
<p><strong>Note</strong>: Use the <code>-P</code>/<code>--progress</code> flag to view real-time transfer statistics</p>
<pre><code>rclone copy source:path dest:path [flags]</code></pre>
<h3 id="options-1">Options</h3>
<pre><code> --create-empty-src-dirs Create empty source dirs on destination after copy
-h, --help help for copy</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-1">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-sync">rclone sync</h2>
<p>Make source and dest identical, modifying destination only.</p>
<h3 id="synopsis-2">Synopsis</h3>
<p>Sync the source to the destination, changing the destination only. Doesn’t transfer unchanged files, testing by size and modification time or MD5SUM. Destination is updated to match source, including deleting files if necessary.</p>
<p><strong>Important</strong>: Since this can cause data loss, test first with the <code>--dry-run</code> flag to see exactly what would be copied and deleted.</p>
<p>Note that files in the destination won’t be deleted if there were any errors at any point.</p>
<p>It is always the contents of the directory that is synced, not the directory so when source:path is a directory, it’s the contents of source:path that are copied, not the directory name and contents. See extended explanation in the <code>copy</code> command above if unsure.</p>
<p>If dest:path doesn’t exist, it is created and the source:path contents go there.</p>
<p><strong>Note</strong>: Use the <code>-P</code>/<code>--progress</code> flag to view real-time transfer statistics</p>
<pre><code>rclone sync source:path dest:path [flags]</code></pre>
<h3 id="options-2">Options</h3>
<pre><code> --create-empty-src-dirs Create empty source dirs on destination after sync
-h, --help help for sync</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-2">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-move">rclone move</h2>
<p>Move files from source to dest.</p>
<h3 id="synopsis-3">Synopsis</h3>
<p>Moves the contents of the source directory to the destination directory. Rclone will error if the source and destination overlap and the remote does not support a server side directory move operation.</p>
<p>If no filters are in use and if possible this will server side move <code>source:path</code> into <code>dest:path</code>. After this <code>source:path</code> will no longer longer exist.</p>
<p>Otherwise for each file in <code>source:path</code> selected by the filters (if any) this will move it into <code>dest:path</code>. If possible a server side move will be used, otherwise it will copy it (server side if possible) into <code>dest:path</code> then delete the original (if no errors on copy) in <code>source:path</code>.</p>
<p>If you want to delete empty source directories after move, use the –delete-empty-src-dirs flag.</p>
<p>See the <a href="/docs/#no-traverse">–no-traverse</a> option for controlling whether rclone lists the destination directory or not. Supplying this option when moving a small number of files into a large destination can speed transfers up greatly.</p>
<p><strong>Important</strong>: Since this can cause data loss, test first with the –dry-run flag.</p>
<p><strong>Note</strong>: Use the <code>-P</code>/<code>--progress</code> flag to view real-time transfer statistics.</p>
<pre><code>rclone move source:path dest:path [flags]</code></pre>
<h3 id="options-3">Options</h3>
<pre><code> --create-empty-src-dirs Create empty source dirs on destination after move
--delete-empty-src-dirs Delete empty source dirs after move
-h, --help help for move</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-3">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-delete">rclone delete</h2>
<p>Remove the contents of path.</p>
<h3 id="synopsis-4">Synopsis</h3>
<p>Remove the files in path. Unlike <code>purge</code> it obeys include/exclude filters so can be used to selectively delete files.</p>
<p><code>rclone delete</code> only deletes objects but leaves the directory structure alone. If you want to delete a directory and all of its contents use <code>rclone purge</code></p>
<p>Eg delete all files bigger than 100MBytes</p>
<p>Check what would be deleted first (use either)</p>
<pre><code>rclone --min-size 100M lsl remote:path
rclone --dry-run --min-size 100M delete remote:path</code></pre>
<p>Then delete</p>
<pre><code>rclone --min-size 100M delete remote:path</code></pre>
<p>That reads “delete everything with a minimum size of 100 MB”, hence delete all files bigger than 100MBytes.</p>
<pre><code>rclone delete remote:path [flags]</code></pre>
<h3 id="options-4">Options</h3>
<pre><code> -h, --help help for delete</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-4">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-purge">rclone purge</h2>
<p>Remove the path and all of its contents.</p>
<h3 id="synopsis-5">Synopsis</h3>
<p>Remove the path and all of its contents. Note that this does not obey include/exclude filters - everything will be removed. Use <code>delete</code> if you want to selectively delete files.</p>
<pre><code>rclone purge remote:path [flags]</code></pre>
<h3 id="options-5">Options</h3>
<pre><code> -h, --help help for purge</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-5">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-mkdir">rclone mkdir</h2>
<p>Make the path if it doesn’t already exist.</p>
<h3 id="synopsis-6">Synopsis</h3>
<p>Make the path if it doesn’t already exist.</p>
<pre><code>rclone mkdir remote:path [flags]</code></pre>
<h3 id="options-6">Options</h3>
<pre><code> -h, --help help for mkdir</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-6">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-rmdir">rclone rmdir</h2>
<p>Remove the path if empty.</p>
<h3 id="synopsis-7">Synopsis</h3>
<p>Remove the path. Note that you can’t remove a path with objects in it, use purge for that.</p>
<pre><code>rclone rmdir remote:path [flags]</code></pre>
<h3 id="options-7">Options</h3>
<pre><code> -h, --help help for rmdir</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-7">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-check">rclone check</h2>
<p>Checks the files in the source and destination match.</p>
<h3 id="synopsis-8">Synopsis</h3>
<p>Checks the files in the source and destination match. It compares sizes and hashes (MD5 or SHA1) and logs a report of files which don’t match. It doesn’t alter the source or destination.</p>
<p>If you supply the –size-only flag, it will only compare the sizes not the hashes as well. Use this for a quick check.</p>
<p>If you supply the –download flag, it will download the data from both remotes and check them against each other on the fly. This can be useful for remotes that don’t support hashes or if you really want to check all the data.</p>
<p>If you supply the –one-way flag, it will only check that files in source match the files in destination, not the other way around. Meaning extra files in destination that are not in the source will not trigger an error.</p>
<pre><code>rclone check source:path dest:path [flags]</code></pre>
<h3 id="options-8">Options</h3>
<pre><code> --download Check by downloading rather than with hash.
-h, --help help for check
--one-way Check one way only, source files must exist on remote</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-8">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-ls">rclone ls</h2>
<p>List the objects in the path with size and path.</p>
<h3 id="synopsis-9">Synopsis</h3>
<p>Lists the objects in the source path to standard output in a human readable format with size and path. Recurses by default.</p>
<p>Eg</p>
<pre><code>$ rclone ls swift:bucket
60295 bevajer5jef
90613 canole
94467 diwogej7
37600 fubuwic</code></pre>
<p>Any of the filtering options can be applied to this command.</p>
<p>There are several related list commands</p>
<ul>
<li><code>ls</code> to list size and path of objects only</li>
<li><code>lsl</code> to list modification time, size and path of objects only</li>
<li><code>lsd</code> to list directories only</li>
<li><code>lsf</code> to list objects and directories in easy to parse format</li>
<li><code>lsjson</code> to list objects and directories in JSON format</li>
</ul>
<p><code>ls</code>,<code>lsl</code>,<code>lsd</code> are designed to be human readable. <code>lsf</code> is designed to be human and machine readable. <code>lsjson</code> is designed to be machine readable.</p>
<p>Note that <code>ls</code> and <code>lsl</code> recurse by default - use “–max-depth 1” to stop the recursion.</p>
<p>The other list commands <code>lsd</code>,<code>lsf</code>,<code>lsjson</code> do not recurse by default - use “-R” to make them recurse.</p>
<p>Listing a non existent directory will produce an error except for remotes which can’t have empty directories (eg s3, swift, gcs, etc - the bucket based remotes).</p>
<pre><code>rclone ls remote:path [flags]</code></pre>
<h3 id="options-9">Options</h3>
<pre><code> -h, --help help for ls</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-9">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-lsd">rclone lsd</h2>
<p>List all directories/containers/buckets in the path.</p>
<h3 id="synopsis-10">Synopsis</h3>
<p>Lists the directories in the source path to standard output. Does not recurse by default. Use the -R flag to recurse.</p>
<p>This command lists the total size of the directory (if known, -1 if not), the modification time (if known, the current time if not), the number of objects in the directory (if known, -1 if not) and the name of the directory, Eg</p>
<pre><code>$ rclone lsd swift:
494000 2018-04-26 08:43:20 10000 10000files
65 2018-04-26 08:43:20 1 1File</code></pre>
<p>Or</p>
<pre><code>$ rclone lsd drive:test
-1 2016-10-17 17:41:53 -1 1000files
-1 2017-01-03 14:40:54 -1 2500files
-1 2017-07-08 14:39:28 -1 4000files</code></pre>
<p>If you just want the directory names use “rclone lsf –dirs-only”.</p>
<p>Any of the filtering options can be applied to this command.</p>
<p>There are several related list commands</p>
<ul>
<li><code>ls</code> to list size and path of objects only</li>
<li><code>lsl</code> to list modification time, size and path of objects only</li>
<li><code>lsd</code> to list directories only</li>
<li><code>lsf</code> to list objects and directories in easy to parse format</li>
<li><code>lsjson</code> to list objects and directories in JSON format</li>
</ul>
<p><code>ls</code>,<code>lsl</code>,<code>lsd</code> are designed to be human readable. <code>lsf</code> is designed to be human and machine readable. <code>lsjson</code> is designed to be machine readable.</p>
<p>Note that <code>ls</code> and <code>lsl</code> recurse by default - use “–max-depth 1” to stop the recursion.</p>
<p>The other list commands <code>lsd</code>,<code>lsf</code>,<code>lsjson</code> do not recurse by default - use “-R” to make them recurse.</p>
<p>Listing a non existent directory will produce an error except for remotes which can’t have empty directories (eg s3, swift, gcs, etc - the bucket based remotes).</p>
<pre><code>rclone lsd remote:path [flags]</code></pre>
<h3 id="options-10">Options</h3>
<pre><code> -h, --help help for lsd
-R, --recursive Recurse into the listing.</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-10">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-lsl">rclone lsl</h2>
<p>List the objects in path with modification time, size and path.</p>
<h3 id="synopsis-11">Synopsis</h3>
<p>Lists the objects in the source path to standard output in a human readable format with modification time, size and path. Recurses by default.</p>
<p>Eg</p>
<pre><code>$ rclone lsl swift:bucket
60295 2016-06-25 18:55:41.062626927 bevajer5jef
90613 2016-06-25 18:55:43.302607074 canole
94467 2016-06-25 18:55:43.046609333 diwogej7
37600 2016-06-25 18:55:40.814629136 fubuwic</code></pre>
<p>Any of the filtering options can be applied to this command.</p>
<p>There are several related list commands</p>
<ul>
<li><code>ls</code> to list size and path of objects only</li>
<li><code>lsl</code> to list modification time, size and path of objects only</li>
<li><code>lsd</code> to list directories only</li>
<li><code>lsf</code> to list objects and directories in easy to parse format</li>
<li><code>lsjson</code> to list objects and directories in JSON format</li>
</ul>
<p><code>ls</code>,<code>lsl</code>,<code>lsd</code> are designed to be human readable. <code>lsf</code> is designed to be human and machine readable. <code>lsjson</code> is designed to be machine readable.</p>
<p>Note that <code>ls</code> and <code>lsl</code> recurse by default - use “–max-depth 1” to stop the recursion.</p>
<p>The other list commands <code>lsd</code>,<code>lsf</code>,<code>lsjson</code> do not recurse by default - use “-R” to make them recurse.</p>
<p>Listing a non existent directory will produce an error except for remotes which can’t have empty directories (eg s3, swift, gcs, etc - the bucket based remotes).</p>
<pre><code>rclone lsl remote:path [flags]</code></pre>
<h3 id="options-11">Options</h3>
<pre><code> -h, --help help for lsl</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-11">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-md5sum">rclone md5sum</h2>
<p>Produces an md5sum file for all the objects in the path.</p>
<h3 id="synopsis-12">Synopsis</h3>
<p>Produces an md5sum file for all the objects in the path. This is in the same format as the standard md5sum tool produces.</p>
<pre><code>rclone md5sum remote:path [flags]</code></pre>
<h3 id="options-12">Options</h3>
<pre><code> -h, --help help for md5sum</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-12">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-sha1sum">rclone sha1sum</h2>
<p>Produces an sha1sum file for all the objects in the path.</p>
<h3 id="synopsis-13">Synopsis</h3>
<p>Produces an sha1sum file for all the objects in the path. This is in the same format as the standard sha1sum tool produces.</p>
<pre><code>rclone sha1sum remote:path [flags]</code></pre>
<h3 id="options-13">Options</h3>
<pre><code> -h, --help help for sha1sum</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-13">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-size">rclone size</h2>
<p>Prints the total size and number of objects in remote:path.</p>
<h3 id="synopsis-14">Synopsis</h3>
<p>Prints the total size and number of objects in remote:path.</p>
<pre><code>rclone size remote:path [flags]</code></pre>
<h3 id="options-14">Options</h3>
<pre><code> -h, --help help for size
--json format output as JSON</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-14">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-version">rclone version</h2>
<p>Show the version number.</p>
<h3 id="synopsis-15">Synopsis</h3>
<p>Show the version number, the go version and the architecture.</p>
<p>Eg</p>
<pre><code>$ rclone version
rclone v1.41
- os/arch: linux/amd64
- go version: go1.10</code></pre>
<p>If you supply the –check flag, then it will do an online check to compare your version with the latest release and the latest beta.</p>
<pre><code>$ rclone version --check
yours: 1.42.0.6
latest: 1.42 (released 2018-06-16)
beta: 1.42.0.5 (released 2018-06-17)</code></pre>
<p>Or</p>
<pre><code>$ rclone version --check
yours: 1.41
latest: 1.42 (released 2018-06-16)
upgrade: https://downloads.rclone.org/v1.42
beta: 1.42.0.5 (released 2018-06-17)
upgrade: https://beta.rclone.org/v1.42-005-g56e1e820</code></pre>
<pre><code>rclone version [flags]</code></pre>
<h3 id="options-15">Options</h3>
<pre><code> --check Check for new version.
-h, --help help for version</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-15">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-cleanup">rclone cleanup</h2>
<p>Clean up the remote if possible</p>
<h3 id="synopsis-16">Synopsis</h3>
<p>Clean up the remote if possible. Empty the trash or delete old file versions. Not supported by all remotes.</p>
<pre><code>rclone cleanup remote:path [flags]</code></pre>
<h3 id="options-16">Options</h3>
<pre><code> -h, --help help for cleanup</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-16">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-dedupe">rclone dedupe</h2>
<p>Interactively find duplicate files and delete/rename them.</p>
<h3 id="synopsis-17">Synopsis</h3>
<p>By default <code>dedupe</code> interactively finds duplicate files and offers to delete all but one or rename them to be different. Only useful with Google Drive which can have duplicate file names.</p>
<p>In the first pass it will merge directories with the same name. It will do this iteratively until all the identical directories have been merged.</p>
<p>The <code>dedupe</code> command will delete all but one of any identical (same md5sum) files it finds without confirmation. This means that for most duplicated files the <code>dedupe</code> command will not be interactive. You can use <code>--dry-run</code> to see what would happen without doing anything.</p>
<p>Here is an example run.</p>
<p>Before - with duplicates</p>
<pre><code>$ rclone lsl drive:dupes
6048320 2016-03-05 16:23:16.798000000 one.txt
6048320 2016-03-05 16:23:11.775000000 one.txt
564374 2016-03-05 16:23:06.731000000 one.txt
6048320 2016-03-05 16:18:26.092000000 one.txt
6048320 2016-03-05 16:22:46.185000000 two.txt
1744073 2016-03-05 16:22:38.104000000 two.txt
564374 2016-03-05 16:22:52.118000000 two.txt</code></pre>
<p>Now the <code>dedupe</code> session</p>
<pre><code>$ rclone dedupe drive:dupes
2016/03/05 16:24:37 Google drive root 'dupes': Looking for duplicates using interactive mode.
one.txt: Found 4 duplicates - deleting identical copies
one.txt: Deleting 2/3 identical duplicates (md5sum "1eedaa9fe86fd4b8632e2ac549403b36")
one.txt: 2 duplicates remain
1: 6048320 bytes, 2016-03-05 16:23:16.798000000, md5sum 1eedaa9fe86fd4b8632e2ac549403b36
2: 564374 bytes, 2016-03-05 16:23:06.731000000, md5sum 7594e7dc9fc28f727c42ee3e0749de81
s) Skip and do nothing
k) Keep just one (choose which in next step)
r) Rename all to be different (by changing file.jpg to file-1.jpg)
s/k/r> k
Enter the number of the file to keep> 1
one.txt: Deleted 1 extra copies
two.txt: Found 3 duplicates - deleting identical copies
two.txt: 3 duplicates remain
1: 564374 bytes, 2016-03-05 16:22:52.118000000, md5sum 7594e7dc9fc28f727c42ee3e0749de81
2: 6048320 bytes, 2016-03-05 16:22:46.185000000, md5sum 1eedaa9fe86fd4b8632e2ac549403b36
3: 1744073 bytes, 2016-03-05 16:22:38.104000000, md5sum 851957f7fb6f0bc4ce76be966d336802
s) Skip and do nothing
k) Keep just one (choose which in next step)
r) Rename all to be different (by changing file.jpg to file-1.jpg)
s/k/r> r
two-1.txt: renamed from: two.txt
two-2.txt: renamed from: two.txt
two-3.txt: renamed from: two.txt</code></pre>
<p>The result being</p>
<pre><code>$ rclone lsl drive:dupes
6048320 2016-03-05 16:23:16.798000000 one.txt
564374 2016-03-05 16:22:52.118000000 two-1.txt
6048320 2016-03-05 16:22:46.185000000 two-2.txt
1744073 2016-03-05 16:22:38.104000000 two-3.txt</code></pre>
<p>Dedupe can be run non interactively using the <code>--dedupe-mode</code> flag or by using an extra parameter with the same value</p>
<ul>
<li><code>--dedupe-mode interactive</code> - interactive as above.</li>
<li><code>--dedupe-mode skip</code> - removes identical files then skips anything left.</li>
<li><code>--dedupe-mode first</code> - removes identical files then keeps the first one.</li>
<li><code>--dedupe-mode newest</code> - removes identical files then keeps the newest one.</li>
<li><code>--dedupe-mode oldest</code> - removes identical files then keeps the oldest one.</li>
<li><code>--dedupe-mode largest</code> - removes identical files then keeps the largest one.</li>
<li><code>--dedupe-mode rename</code> - removes identical files then renames the rest to be different.</li>
</ul>
<p>For example to rename all the identically named photos in your Google Photos directory, do</p>
<pre><code>rclone dedupe --dedupe-mode rename "drive:Google Photos"</code></pre>
<p>Or</p>
<pre><code>rclone dedupe rename "drive:Google Photos"</code></pre>
<pre><code>rclone dedupe [mode] remote:path [flags]</code></pre>
<h3 id="options-17">Options</h3>
<pre><code> --dedupe-mode string Dedupe mode interactive|skip|first|newest|oldest|rename. (default "interactive")
-h, --help help for dedupe</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-17">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-about">rclone about</h2>
<p>Get quota information from the remote.</p>
<h3 id="synopsis-18">Synopsis</h3>
<p>Get quota information from the remote, like bytes used/free/quota and bytes used in the trash. Not supported by all remotes.</p>
<p>This will print to stdout something like this:</p>
<pre><code>Total: 17G
Used: 7.444G
Free: 1.315G
Trashed: 100.000M
Other: 8.241G</code></pre>
<p>Where the fields are:</p>
<ul>
<li>Total: total size available.</li>
<li>Used: total size used</li>
<li>Free: total amount this user could upload.</li>
<li>Trashed: total amount in the trash</li>
<li>Other: total amount in other storage (eg Gmail, Google Photos)</li>
<li>Objects: total number of objects in the storage</li>
</ul>
<p>Note that not all the backends provide all the fields - they will be missing if they are not known for that backend. Where it is known that the value is unlimited the value will also be omitted.</p>
<p>Use the –full flag to see the numbers written out in full, eg</p>
<pre><code>Total: 18253611008
Used: 7993453766
Free: 1411001220
Trashed: 104857602
Other: 8849156022</code></pre>
<p>Use the –json flag for a computer readable output, eg</p>
<pre><code>{
"total": 18253611008,
"used": 7993453766,
"trashed": 104857602,
"other": 8849156022,
"free": 1411001220
}</code></pre>
<pre><code>rclone about remote: [flags]</code></pre>
<h3 id="options-18">Options</h3>
<pre><code> --full Full numbers instead of SI units
-h, --help help for about
--json Format output as JSON</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-18">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-authorize">rclone authorize</h2>
<p>Remote authorization.</p>
<h3 id="synopsis-19">Synopsis</h3>
<p>Remote authorization. Used to authorize a remote or headless rclone from a machine with a browser - use as instructed by rclone config.</p>
<pre><code>rclone authorize [flags]</code></pre>
<h3 id="options-19">Options</h3>
<pre><code> -h, --help help for authorize</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-19">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-cachestats">rclone cachestats</h2>
<p>Print cache stats for a remote</p>
<h3 id="synopsis-20">Synopsis</h3>
<p>Print cache stats for a remote in JSON format</p>
<pre><code>rclone cachestats source: [flags]</code></pre>
<h3 id="options-20">Options</h3>
<pre><code> -h, --help help for cachestats</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-20">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-cat">rclone cat</h2>
<p>Concatenates any files and sends them to stdout.</p>
<h3 id="synopsis-21">Synopsis</h3>
<p>rclone cat sends any files to standard output.</p>
<p>You can use it like this to output a single file</p>
<pre><code>rclone cat remote:path/to/file</code></pre>
<p>Or like this to output any file in dir or subdirectories.</p>
<pre><code>rclone cat remote:path/to/dir</code></pre>
<p>Or like this to output any .txt files in dir or subdirectories.</p>
<pre><code>rclone --include "*.txt" cat remote:path/to/dir</code></pre>
<p>Use the –head flag to print characters only at the start, –tail for the end and –offset and –count to print a section in the middle. Note that if offset is negative it will count from the end, so –offset -1 –count 1 is equivalent to –tail 1.</p>
<pre><code>rclone cat remote:path [flags]</code></pre>
<h3 id="options-21">Options</h3>
<pre><code> --count int Only print N characters. (default -1)
--discard Discard the output instead of printing.
--head int Only print the first N characters.
-h, --help help for cat
--offset int Start printing at offset N (or from end if -ve).
--tail int Only print the last N characters.</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-21">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-config-create">rclone config create</h2>
<p>Create a new remote with name, type and options.</p>
<h3 id="synopsis-22">Synopsis</h3>
<p>Create a new remote of <name> with <type> and options. The options should be passed in in pairs of <key> <value>.</p>
<p>For example to make a swift remote of name myremote using auto config you would do:</p>
<pre><code>rclone config create myremote swift env_auth true</code></pre>
<p>Note that if the config process would normally ask a question the default is taken. Each time that happens rclone will print a message saying how to affect the value taken.</p>
<p>If any of the parameters passed is a password field, then rclone will automatically obscure them before putting them in the config file.</p>
<p>So for example if you wanted to configure a Google Drive remote but using remote authorization you would do this:</p>
<pre><code>rclone config create mydrive drive config_is_local false</code></pre>
<pre><code>rclone config create <name> <type> [<key> <value>]* [flags]</code></pre>
<h3 id="options-22">Options</h3>
<pre><code> -h, --help help for create</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-22">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone_config/">rclone config</a> - Enter an interactive configuration session.</li>
</ul>
<h2 id="rclone-config-delete">rclone config delete</h2>
<p>Delete an existing remote <name>.</p>
<h3 id="synopsis-23">Synopsis</h3>
<p>Delete an existing remote <name>.</p>
<pre><code>rclone config delete <name> [flags]</code></pre>
<h3 id="options-23">Options</h3>
<pre><code> -h, --help help for delete</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-23">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone_config/">rclone config</a> - Enter an interactive configuration session.</li>
</ul>
<h2 id="rclone-config-disconnect">rclone config disconnect</h2>
<p>Disconnects user from remote</p>
<h3 id="synopsis-24">Synopsis</h3>
<p>This disconnects the remote: passed in to the cloud storage system.</p>
<p>This normally means revoking the oauth token.</p>
<p>To reconnect use “rclone config reconnect”.</p>
<pre><code>rclone config disconnect remote: [flags]</code></pre>
<h3 id="options-24">Options</h3>
<pre><code> -h, --help help for disconnect</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-24">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone_config/">rclone config</a> - Enter an interactive configuration session.</li>
</ul>
<h2 id="rclone-config-dump">rclone config dump</h2>
<p>Dump the config file as JSON.</p>
<h3 id="synopsis-25">Synopsis</h3>
<p>Dump the config file as JSON.</p>
<pre><code>rclone config dump [flags]</code></pre>
<h3 id="options-25">Options</h3>
<pre><code> -h, --help help for dump</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-25">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone_config/">rclone config</a> - Enter an interactive configuration session.</li>
</ul>
<h2 id="rclone-config-edit">rclone config edit</h2>
<p>Enter an interactive configuration session.</p>
<h3 id="synopsis-26">Synopsis</h3>
<p>Enter an interactive configuration session where you can setup new remotes and manage existing ones. You may also set or remove a password to protect your configuration.</p>
<pre><code>rclone config edit [flags]</code></pre>
<h3 id="options-26">Options</h3>
<pre><code> -h, --help help for edit</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-26">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone_config/">rclone config</a> - Enter an interactive configuration session.</li>
</ul>
<h2 id="rclone-config-file">rclone config file</h2>
<p>Show path of configuration file in use.</p>
<h3 id="synopsis-27">Synopsis</h3>
<p>Show path of configuration file in use.</p>
<pre><code>rclone config file [flags]</code></pre>
<h3 id="options-27">Options</h3>
<pre><code> -h, --help help for file</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-27">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone_config/">rclone config</a> - Enter an interactive configuration session.</li>
</ul>
<h2 id="rclone-config-password">rclone config password</h2>
<p>Update password in an existing remote.</p>
<h3 id="synopsis-28">Synopsis</h3>
<p>Update an existing remote’s password. The password should be passed in in pairs of <key> <value>.</p>
<p>For example to set password of a remote of name myremote you would do:</p>
<pre><code>rclone config password myremote fieldname mypassword</code></pre>
<p>This command is obsolete now that “config update” and “config create” both support obscuring passwords directly.</p>
<pre><code>rclone config password <name> [<key> <value>]+ [flags]</code></pre>
<h3 id="options-28">Options</h3>
<pre><code> -h, --help help for password</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-28">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone_config/">rclone config</a> - Enter an interactive configuration session.</li>
</ul>
<h2 id="rclone-config-providers">rclone config providers</h2>
<p>List in JSON format all the providers and options.</p>
<h3 id="synopsis-29">Synopsis</h3>
<p>List in JSON format all the providers and options.</p>
<pre><code>rclone config providers [flags]</code></pre>
<h3 id="options-29">Options</h3>
<pre><code> -h, --help help for providers</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-29">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone_config/">rclone config</a> - Enter an interactive configuration session.</li>
</ul>
<h2 id="rclone-config-reconnect">rclone config reconnect</h2>
<p>Re-authenticates user with remote.</p>
<h3 id="synopsis-30">Synopsis</h3>
<p>This reconnects remote: passed in to the cloud storage system.</p>
<p>To disconnect the remote use “rclone config disconnect”.</p>
<p>This normally means going through the interactive oauth flow again.</p>
<pre><code>rclone config reconnect remote: [flags]</code></pre>
<h3 id="options-30">Options</h3>
<pre><code> -h, --help help for reconnect</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-30">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone_config/">rclone config</a> - Enter an interactive configuration session.</li>
</ul>
<h2 id="rclone-config-show">rclone config show</h2>
<p>Print (decrypted) config file, or the config for a single remote.</p>
<h3 id="synopsis-31">Synopsis</h3>
<p>Print (decrypted) config file, or the config for a single remote.</p>
<pre><code>rclone config show [<remote>] [flags]</code></pre>
<h3 id="options-31">Options</h3>
<pre><code> -h, --help help for show</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-31">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone_config/">rclone config</a> - Enter an interactive configuration session.</li>
</ul>
<h2 id="rclone-config-update">rclone config update</h2>
<p>Update options in an existing remote.</p>
<h3 id="synopsis-32">Synopsis</h3>
<p>Update an existing remote’s options. The options should be passed in in pairs of <key> <value>.</p>
<p>For example to update the env_auth field of a remote of name myremote you would do:</p>
<pre><code>rclone config update myremote swift env_auth true</code></pre>
<p>If any of the parameters passed is a password field, then rclone will automatically obscure them before putting them in the config file.</p>
<p>If the remote uses oauth the token will be updated, if you don’t require this add an extra parameter thus:</p>
<pre><code>rclone config update myremote swift env_auth true config_refresh_token false</code></pre>
<pre><code>rclone config update <name> [<key> <value>]+ [flags]</code></pre>
<h3 id="options-32">Options</h3>
<pre><code> -h, --help help for update</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-32">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone_config/">rclone config</a> - Enter an interactive configuration session.</li>
</ul>
<h2 id="rclone-config-userinfo">rclone config userinfo</h2>
<p>Prints info about logged in user of remote.</p>
<h3 id="synopsis-33">Synopsis</h3>
<p>This prints the details of the person logged in to the cloud storage system.</p>
<pre><code>rclone config userinfo remote: [flags]</code></pre>
<h3 id="options-33">Options</h3>
<pre><code> -h, --help help for userinfo
--json Format output as JSON</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-33">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone_config/">rclone config</a> - Enter an interactive configuration session.</li>
</ul>
<h2 id="rclone-copyto">rclone copyto</h2>
<p>Copy files from source to dest, skipping already copied</p>
<h3 id="synopsis-34">Synopsis</h3>
<p>If source:path is a file or directory then it copies it to a file or directory named dest:path.</p>
<p>This can be used to upload single files to other than their current name. If the source is a directory then it acts exactly like the copy command.</p>
<p>So</p>
<pre><code>rclone copyto src dst</code></pre>
<p>where src and dst are rclone paths, either remote:path or /path/to/local or C:.</p>
<p>This will:</p>
<pre><code>if src is file
copy it to dst, overwriting an existing file if it exists
if src is directory
copy it to dst, overwriting existing files if they exist
see copy command for full details</code></pre>
<p>This doesn’t transfer unchanged files, testing by size and modification time or MD5SUM. It doesn’t delete files from the destination.</p>
<p><strong>Note</strong>: Use the <code>-P</code>/<code>--progress</code> flag to view real-time transfer statistics</p>
<pre><code>rclone copyto source:path dest:path [flags]</code></pre>
<h3 id="options-34">Options</h3>
<pre><code> -h, --help help for copyto</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-34">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-copyurl">rclone copyurl</h2>
<p>Copy url content to dest.</p>
<h3 id="synopsis-35">Synopsis</h3>
<p>Download urls content and copy it to destination without saving it in tmp storage.</p>
<p>Setting –auto-filename flag will cause retrieving file name from url and using it in destination path.</p>
<pre><code>rclone copyurl https://example.com dest:path [flags]</code></pre>
<h3 id="options-35">Options</h3>
<pre><code> -a, --auto-filename Get the file name from the url and use it for destination file path
-h, --help help for copyurl</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-35">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-cryptcheck">rclone cryptcheck</h2>
<p>Cryptcheck checks the integrity of a crypted remote.</p>
<h3 id="synopsis-36">Synopsis</h3>
<p>rclone cryptcheck checks a remote against a crypted remote. This is the equivalent of running rclone check, but able to check the checksums of the crypted remote.</p>
<p>For it to work the underlying remote of the cryptedremote must support some kind of checksum.</p>
<p>It works by reading the nonce from each file on the cryptedremote: and using that to encrypt each file on the remote:. It then checks the checksum of the underlying file on the cryptedremote: against the checksum of the file it has just encrypted.</p>
<p>Use it like this</p>
<pre><code>rclone cryptcheck /path/to/files encryptedremote:path</code></pre>
<p>You can use it like this also, but that will involve downloading all the files in remote:path.</p>
<pre><code>rclone cryptcheck remote:path encryptedremote:path</code></pre>
<p>After it has run it will log the status of the encryptedremote:.</p>
<p>If you supply the –one-way flag, it will only check that files in source match the files in destination, not the other way around. Meaning extra files in destination that are not in the source will not trigger an error.</p>
<pre><code>rclone cryptcheck remote:path cryptedremote:path [flags]</code></pre>
<h3 id="options-36">Options</h3>
<pre><code> -h, --help help for cryptcheck
--one-way Check one way only, source files must exist on destination</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-36">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>
<h2 id="rclone-cryptdecode">rclone cryptdecode</h2>
<p>Cryptdecode returns unencrypted file names.</p>
<h3 id="synopsis-37">Synopsis</h3>
<p>rclone cryptdecode returns unencrypted file names when provided with a list of encrypted file names. List limit is 10 items.</p>
<p>If you supply the –reverse flag, it will return encrypted file names.</p>
<p>use it like this</p>
<pre><code>rclone cryptdecode encryptedremote: encryptedfilename1 encryptedfilename2
rclone cryptdecode --reverse encryptedremote: filename1 filename2</code></pre>
<pre><code>rclone cryptdecode encryptedremote: encryptedfilename [flags]</code></pre>
<h3 id="options-37">Options</h3>
<pre><code> -h, --help help for cryptdecode
--reverse Reverse cryptdecode, encrypts filenames</code></pre>
<p>See the <a href="https://rclone.org/flags/">global flags page</a> for global options not listed here.</p>
<h3 id="see-also-37">SEE ALSO</h3>
<ul>
<li><a href="https://rclone.org/commands/rclone/">rclone</a> - Show help for rclone commands, flags and backends.</li>
</ul>