2019-01-29 03:29:54 +00:00
|
|
|
# rclone
|
|
|
|
|
2023-07-16 18:23:40 +01:00
|
|
|
> Copy, synchronize or move files and directories to and from many cloud services.
|
2019-05-23 11:56:50 +01:00
|
|
|
> More information: <https://rclone.org>.
|
2019-01-29 03:29:54 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
- List contents of a directory on an rclone remote:
|
2019-01-29 03:29:54 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
`rclone lsf {{remote_name}}:{{path/to/directory}}`
|
2019-01-29 03:29:54 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
- Copy file or directory from local source to remote destination:
|
2019-01-29 03:29:54 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
`rclone copy {{path/to/source_file_or_directory}} {{remote_name}}:{{path/to/destination_directory}}`
|
2019-01-29 03:29:54 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
- Copy file or directory from remote source to local destination:
|
2019-01-29 03:29:54 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
`rclone copy {{remote_name}}:{{path/to/source_file_or_directory}} {{path/to/destination_directory}}`
|
2019-01-29 03:29:54 +00:00
|
|
|
|
|
|
|
- Sync local source to remote destination, changing the destination only:
|
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
`rclone sync {{path/to/file_or_directory}} {{remote_name}}:{{path/to/directory}}`
|
2019-01-29 03:29:54 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
- Move file or directory from local source to remote destination:
|
2019-01-29 03:29:54 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
`rclone move {{path/to/file_or_directory}} {{remote_name}}:{{path/to/directory}}`
|
2019-01-29 03:29:54 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
- Delete remote file or directory (use `--dry-run` to test, remove it to actually delete):
|
2019-01-29 03:29:54 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
`rclone --dry-run delete {{remote_name}}:{{path/to/file_or_directory}}`
|
2019-01-29 03:29:54 +00:00
|
|
|
|
|
|
|
- Mount rclone remote (experimental):
|
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
`rclone mount {{remote_name}}:{{path/to/directory}} {{path/to/mount_point}}`
|
2019-01-29 03:29:54 +00:00
|
|
|
|
|
|
|
- Unmount rclone remote if CTRL-C fails (experimental):
|
|
|
|
|
|
|
|
`fusermount -u {{path/to/mount_point}}`
|