JSPM

rclone-archive

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q10207F
  • License Apache-2.0

rclone custom command to archive a remote path to another remote path

Package Exports

  • rclone-archive
  • rclone-archive/archive.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rclone-archive) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

rclone-archive

rclone archive stores and compress a remote path to an archive in another remote path.

By default, the source path is stored only, without any compression. The archive is streamed to destination remote.

npx rclone archive source:path dest:filename.zip

If --compress is set, content is compressed first.

npx rclone archive source:path dest:filename.zip --compress

Note that with compression, the archive file size cannot be determined beforehand, so it cannot be streamed to the destination, but uploaded in chunks.

In either cases, the archive process cannot be retried because the data are not kept around until the archiving succeeds. If you need to transfer a lot of data, you're better off archiving locally and then rclone move the archive to the destination.

Usage

npx rclone archive source:path dest:filename.zip

Flags:

--compress  Deflate the content (compression method 8)
--help      Help for `archive`
--progress  Shows progress.

Installation

Since this is just a custom command, rclone.js needs to be installed first.

npm install rclone.js rclone-archive