Rclone

提供: ArchWiki
2023年5月19日 (金) 15:15時点におけるKgx (トーク | 投稿記録)による版 (英語版から転載)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
ナビゲーションに移動 検索に移動

Rclone is a command-line program to manage files on remote filesystems like cloud storage providers. It is a feature-rich alternative to cloud vendors' web storage interfaces. It has powerful cloud equivalents to the unix commands rsync, cp, mv, mount, ls, ncdu, tree, rm, and cat.

Use Cases

  • Backup (and encrypt) files to cloud storage
  • Restore (and decrypt) files from cloud storage
  • Mirror cloud data to other cloud services or locally
  • Migrate data to the cloud, or between cloud storage vendors
  • Mount multiple, encrypted, cached or diverse cloud storage as a disk
  • Analyse and account for data held on cloud storage using lsf, ljson, size, ncdu
  • Union file systems together to present multiple local and/or cloud file systems as one

Features

  • Transfers
  • MD5, SHA1 hashes are checked at all times for file integrity
  • Timestamps are preserved on files
  • Operations can be restarted at any time
  • Can be to and from network, e.g. two different cloud providers
  • Can use multi-threaded downloads to local disk
  • Copy new or changed files to cloud storage
  • Sync (one way) to make a directory identical
  • Move files to cloud storage deleting the local after verification
  • Check hashes and for missing/extra files
  • Mount your cloud storage as a network disk
  • Serve local or remote files over HTTP/WebDav/FTP/SFTP/DLNA
  • Experimental Web based GUI

Rclone supports a large number of backend protocols and cloud storage providers. The full list can be found on their website [1]

Installation

Install the rclone package.

Usage

Rclone provides a guided configuration script as well as a large number of commands to be used.

Configuration

To configure a remote storage, simply run the guided setup like this

rclone config

Commands

Once a remote storage is configured, it is possible to access it using subcommands:

rclone ls remote:path # lists a remote
rclone copy /local/path remote:path # copies /local/path to the remote
rclone sync --interactive /local/path remote:path # syncs /local/path to the remote

For a full list of available subcommands see the documentation

Mount remote as FUSE-based filesystem

Rclone offers easy integration with FUSE by using the mount option

rclone mount remote:path/to/files /path/to/local/mount