Linux command
rclone 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Configure a new remote
rclone config
List configured remotes
rclone listremotes
List files
rclone ls [remote]:[path]
Copy files
rclone copy [source] [remote]:[path]
Sync local directory to remote
rclone sync [source] [remote]:[path]
Mount remote as filesystem
rclone mount [remote]:[path] [/local/mountpoint]
Check differences
rclone check [source] [remote]:[path]
Dry run
rclone sync --dry-run [source] [remote]:[path]
说明
rclone is a command-line program for managing files on cloud storage, often described as "rsync for cloud storage." It supports over 70 cloud storage providers including Amazon S3, Google Drive, Dropbox, OneDrive, Backblaze B2, and standard protocols like SFTP, WebDAV, and FTP. The sync command makes the destination identical to the source, including deleting files not present in the source. Use copy for one-way copying without deletion. Both commands transfer only modified files based on size and modification time (or checksums). Configuration is stored in ~/.config/rclone/rclone.conf and created interactively with rclone config. Each remote has a name used as a prefix (e.g., gdrive:) in commands. The mount command exposes cloud storage as a local filesystem using FUSE, enabling standard file operations on remote storage.
参数
- config
- Interactive configuration of remotes
- copy
- Copy files from source to destination (no deletion)
- sync
- Make destination identical to source (deletes extras)
- move
- Move files from source to destination
- ls
- List objects with size and path
- lsd
- List directories only
- mount
- Mount remote as FUSE filesystem
- check
- Check if source and destination match
- delete
- Remove files in path
- --dry-run, -n
- Preview changes without executing
- --interactive, -i
- Prompt before destructive operations
- --progress, -P
- Show real-time transfer progress
- --transfers _N_
- Number of parallel file transfers (default 4)
- --checkers _N_
- Number of parallel checkers (default 8)
- --verbose, -v
- Increase verbosity (use -vv for more)
- --config _FILE_
- Specify config file location
FAQ
What is the rclone command used for?
rclone is a command-line program for managing files on cloud storage, often described as "rsync for cloud storage." It supports over 70 cloud storage providers including Amazon S3, Google Drive, Dropbox, OneDrive, Backblaze B2, and standard protocols like SFTP, WebDAV, and FTP. The sync command makes the destination identical to the source, including deleting files not present in the source. Use copy for one-way copying without deletion. Both commands transfer only modified files based on size and modification time (or checksums). Configuration is stored in ~/.config/rclone/rclone.conf and created interactively with rclone config. Each remote has a name used as a prefix (e.g., gdrive:) in commands. The mount command exposes cloud storage as a local filesystem using FUSE, enabling standard file operations on remote storage.
How do I run a basic rclone example?
Run `rclone config` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does config do in rclone?
Interactive configuration of remotes