1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 06:18:17 +01:00
tldr/pages/common/rclone.md
Marco Bonelli 2599a6de48 Refactor: change "folder" to "directory" where needed.
This commit fixes every instance in which the word "folder" is
incorrectly used instead of "directory".
2019-02-13 20:51:04 +05:30

1.2 KiB

rclone

CLI program to copy/sync/move files and directories to and from many cloud services.

  • List contents of a directory on an rclone remote:

rclone lsf {{remote_name}}:{{path/to/directory}}

  • Copy file or directory from local source to remote destination:

rclone copy {{path/to/source_file_or_directory}} {{remote_name}}:{{path/to/destination_directory}}

  • Copy file or directory from remote source to local destination:

rclone copy {{remote_name}}:{{path/to/source_file_or_directory}} {{path/to/destination_directory}}

  • Sync local source to remote destination, changing the destination only:

rclone sync {{path/to/file_or_directory}} {{remote_name}}:{{path/to/directory}}

  • Move file or directory from local source to remote destination:

rclone move {{path/to/file_or_directory}} {{remote_name}}:{{path/to/directory}}

  • Delete remote file or directory (use --dry-run to test, remove it to actually delete):

rclone --dry-run delete {{remote_name}}:{{path/to/file_or_directory}}

  • Mount rclone remote (experimental):

rclone mount {{remote_name}}:{{path/to/directory}} {{path/to/mount_point}}

  • Unmount rclone remote if CTRL-C fails (experimental):

fusermount -u {{path/to/mount_point}}