tldr/pages/common/rclone.md

37 lines
1.3 KiB
Markdown
Raw Normal View History

2019-01-29 03:29:54 +00:00
# rclone
> Copy, synchronize or move files and directories to and from many cloud services.
> More information: <https://rclone.org>.
2019-01-29 03:29:54 +00:00
- Launch an interactive menu to setup rclone:
`rclone config`
- List contents of a directory on an rclone remote:
2019-01-29 03:29:54 +00:00
`rclone lsf {{remote_name}}:{{path/to/directory}}`
2019-01-29 03:29:54 +00:00
- Copy a file or directory from the local machine to the remote destination:
2019-01-29 03:29:54 +00:00
`rclone copy {{path/to/source_file_or_directory}} {{remote_name}}:{{path/to/directory}}`
2019-01-29 03:29:54 +00:00
- Copy files changed within the past 24 hours to a remote from the local machine, asking the user to confirm each file:
2019-01-29 03:29:54 +00:00
`rclone copy --interactive --max-age 24h {{remote_name}}:{{path/to/directory}} {{path/to/local_directory}} `
2019-01-29 03:29:54 +00:00
- Mirror a specific file or directory (Note: Unlike copy, sync removes files from the remote if it does not exist locally):
2019-01-29 03:29:54 +00:00
`rclone sync {{path/to/file_or_directory}} {{remote_name}}:{{path/to/directory}}`
2019-01-29 03:29:54 +00:00
- Delete a remote file or directory (Note: `--dry-run` means test, remove it from the command to actually delete):
2019-01-29 03:29:54 +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):
`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}}`