rclone教程
时间:2023-06-06 阅读:3092
安装rclone
curl https://rclone.org/install.sh | bash
macOS 上并且安装了Homebrew,请运行brew install rclone 然后按 Enter 键安装 rclone。
增加硬盘或网盘
rclone config
选N增加
列出所有远程盘
rclone listremotes
rclone lsd dayeah:
rclone lsd dayeah:/aaa
rclone ls dayeah:
rclone ls dayeah:/aaa
rclone tree dayeah:
rclone tree dayeah:/aaa
rclone size dayeah:/aaa/bbb (dayeah:是盘 /aaa/bbb是目录)
rclone size dayeah
rclone copy /root/a.txt "dayeah:/aaa/" -P (复制本地文件到远程盘 -P代表显示进度(大写P)。 路径可以不用""也能运行)
rclone copy "dayeah:/aaa/a.txt/" /root/aaa/ -P (复制远程盘文件到本地目录)
rclone move "dayeah:/aaa/" /root/bbb -P (复制远程盘aaa目录(不包括aaa目录)下的所有文件和子目录到本地bbb目录下)
rclone move /root/aaa "dayeah:/bbb/" -P (复制本地aaa目录下所有文件和子目录到远程盘目录bbb下)
rclone move "dayeah:/aaa/" /root/bbb -P --dry-run(带--dry-run仅仅测试不实际复制运行)
rclone delete dayeah:/aaa/bbb -P
rclone purge dayeah:/aaa/bbb -P
rclone mount remote:path/to/files /home/onedrive
网友评论